-- THIS IS AN AUTO-GENERATED FILE. PLEASE DO NOT MODIFY DIRECTLY!
-- CREATED FROM perms.csv @ 2021/08/05 14:59:51

USE [Vigil-DVR]
GO

SET NOCOUNT ON
GO

-- Settings ----------------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 50) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (50, 11066, 10)
ELSE
    UPDATE perms SET permission_desc_id = 11066, permission_sort_order = 10
    WHERE permission_id = 50
GO
----------------------------------------------------------------------------

-- Camera Setup Tab --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 58) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (58, 11355, 20)
ELSE
    UPDATE perms SET permission_desc_id = 11355, permission_sort_order = 20
    WHERE permission_id = 58
GO
----------------------------------------------------------------------------

-- DVR Settings Tab --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 52) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (52, 11356, 30)
ELSE
    UPDATE perms SET permission_desc_id = 11356, permission_sort_order = 30
    WHERE permission_id = 52
GO
----------------------------------------------------------------------------

-- Media Drives Tab --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 53) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (53, 11357, 40)
ELSE
    UPDATE perms SET permission_desc_id = 11357, permission_sort_order = 40
    WHERE permission_id = 53
GO
----------------------------------------------------------------------------

-- COM Ports Tab -----------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 54) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (54, 11358, 50)
ELSE
    UPDATE perms SET permission_desc_id = 11358, permission_sort_order = 50
    WHERE permission_id = 54
GO
----------------------------------------------------------------------------

-- Users Tab ---------------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 51) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (51, 11133, 60)
ELSE
    UPDATE perms SET permission_desc_id = 11133, permission_sort_order = 60
    WHERE permission_id = 51
GO
----------------------------------------------------------------------------

-- Relays/Alarms Tab -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 56) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (56, 11359, 70)
ELSE
    UPDATE perms SET permission_desc_id = 11359, permission_sort_order = 70
    WHERE permission_id = 56
GO
----------------------------------------------------------------------------

-- POS/Data Tab ------------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 57) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (57, 11360, 80)
ELSE
    UPDATE perms SET permission_desc_id = 11360, permission_sort_order = 80
    WHERE permission_id = 57
GO
----------------------------------------------------------------------------

-- Audio Tab ---------------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 62) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (62, 12060, 85)
ELSE
    UPDATE perms SET permission_desc_id = 12060, permission_sort_order = 85
    WHERE permission_id = 62
GO
----------------------------------------------------------------------------

-- Email Overview Tab ------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 12100) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (12100, 18394, 87)
ELSE
    UPDATE perms SET permission_desc_id = 18394, permission_sort_order = 87
    WHERE permission_id = 12100
GO
----------------------------------------------------------------------------

-- CODEC Settings ----------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 59) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (59, 11372, 90)
ELSE
    UPDATE perms SET permission_desc_id = 11372, permission_sort_order = 90
    WHERE permission_id = 59
GO
----------------------------------------------------------------------------

-- Recorder ----------------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 55) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (55, 10090, 100)
ELSE
    UPDATE perms SET permission_desc_id = 10090, permission_sort_order = 100
    WHERE permission_id = 55
GO
----------------------------------------------------------------------------

-- Search ------------------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 60) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (60, 11218, 110)
ELSE
    UPDATE perms SET permission_desc_id = 11218, permission_sort_order = 110
    WHERE permission_id = 60
GO
----------------------------------------------------------------------------

-- Allow RapidStream on Playback (Local) -----------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2026400) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2026400, 19843, 112)
ELSE
    UPDATE perms SET permission_desc_id = 19843, permission_sort_order = 112
    WHERE permission_id = 2026400
GO
----------------------------------------------------------------------------

-- Allow RapidStream on Playback (Remote) ----------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2026500) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2026500, 19844, 112)
ELSE
    UPDATE perms SET permission_desc_id = 19844, permission_sort_order = 112
    WHERE permission_id = 2026500
GO
----------------------------------------------------------------------------

-- Export Still Image ------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 70) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (70, 15766, 115)
ELSE
    UPDATE perms SET permission_desc_id = 15766, permission_sort_order = 115
    WHERE permission_id = 70
GO
----------------------------------------------------------------------------

-- Email Still Image -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 71) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (71, 15767, 116)
ELSE
    UPDATE perms SET permission_desc_id = 15767, permission_sort_order = 116
    WHERE permission_id = 71
GO
----------------------------------------------------------------------------

-- Export AVI --------------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 72) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (72, 15764, 117)
ELSE
    UPDATE perms SET permission_desc_id = 15764, permission_sort_order = 117
    WHERE permission_id = 72
GO
----------------------------------------------------------------------------

-- Export Authentic Video --------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 73) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (73, 15765, 118)
ELSE
    UPDATE perms SET permission_desc_id = 15765, permission_sort_order = 118
    WHERE permission_id = 73
GO
----------------------------------------------------------------------------

-- Allow AVI Export (Rapid Stream) -----------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 78) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (78, 17706, 119)
ELSE
    UPDATE perms SET permission_desc_id = 17706, permission_sort_order = 119
    WHERE permission_id = 78
GO
----------------------------------------------------------------------------

-- Allow Authentic Video Export (Rapid Stream) -----------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 79) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (79, 17707, 120)
ELSE
    UPDATE perms SET permission_desc_id = 17707, permission_sort_order = 120
    WHERE permission_id = 79
GO
----------------------------------------------------------------------------

-- Export Data -------------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 74) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (74, 15769, 121)
ELSE
    UPDATE perms SET permission_desc_id = 15769, permission_sort_order = 121
    WHERE permission_id = 74
GO
----------------------------------------------------------------------------

-- Audio Export ------------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 3650) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (3650, 12461, 122)
ELSE
    UPDATE perms SET permission_desc_id = 12461, permission_sort_order = 122
    WHERE permission_id = 3650
GO
----------------------------------------------------------------------------

-- Video Tagging -----------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 77) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (77, 16863, 123)
ELSE
    UPDATE perms SET permission_desc_id = 16863, permission_sort_order = 123
    WHERE permission_id = 77
GO
----------------------------------------------------------------------------

-- Live --------------------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 61) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (61, 11351, 124)
ELSE
    UPDATE perms SET permission_desc_id = 11351, permission_sort_order = 124
    WHERE permission_id = 61
GO
----------------------------------------------------------------------------

-- High Frame-Rate Live ----------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 63) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (63, 11682, 125)
ELSE
    UPDATE perms SET permission_desc_id = 11682, permission_sort_order = 125
    WHERE permission_id = 63
GO
----------------------------------------------------------------------------

-- Allow Sub Stream on Live (Local) ----------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2026000) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2026000, 19845, 125)
ELSE
    UPDATE perms SET permission_desc_id = 19845, permission_sort_order = 125
    WHERE permission_id = 2026000
GO
----------------------------------------------------------------------------

-- Allow Sub Stream on Live (Remote) ---------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2026100) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2026100, 19846, 125)
ELSE
    UPDATE perms SET permission_desc_id = 19846, permission_sort_order = 125
    WHERE permission_id = 2026100
GO
----------------------------------------------------------------------------

-- Allow RapidStream on Live (Local) ---------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2026200) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2026200, 19841, 126)
ELSE
    UPDATE perms SET permission_desc_id = 19841, permission_sort_order = 126
    WHERE permission_id = 2026200
GO
----------------------------------------------------------------------------

-- Allow RapidStream on Live (Remote) --------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2026300) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2026300, 19842, 126)
ELSE
    UPDATE perms SET permission_desc_id = 19842, permission_sort_order = 126
    WHERE permission_id = 2026300
GO
----------------------------------------------------------------------------

-- Relay -------------------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 67) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (67, 15433, 127)
ELSE
    UPDATE perms SET permission_desc_id = 15433, permission_sort_order = 127
    WHERE permission_id = 67
GO
----------------------------------------------------------------------------

-- Socket Activity Form ----------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 66) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (66, 12681, 127)
ELSE
    UPDATE perms SET permission_desc_id = 12681, permission_sort_order = 127
    WHERE permission_id = 66
GO
----------------------------------------------------------------------------

-- Browse Exports ----------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 65) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (65, 11279, 128)
ELSE
    UPDATE perms SET permission_desc_id = 11279, permission_sort_order = 128
    WHERE permission_id = 65
GO
----------------------------------------------------------------------------

-- Export Delete -----------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 76) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (76, 16954, 130)
ELSE
    UPDATE perms SET permission_desc_id = 16954, permission_sort_order = 130
    WHERE permission_id = 76
GO
----------------------------------------------------------------------------

-- Audio Recorder ----------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 64) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (64, 12061, 131)
ELSE
    UPDATE perms SET permission_desc_id = 12061, permission_sort_order = 131
    WHERE permission_id = 64
GO
----------------------------------------------------------------------------

-- Audio Live --------------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 3500) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (3500, 12459, 132)
ELSE
    UPDATE perms SET permission_desc_id = 12459, permission_sort_order = 132
    WHERE permission_id = 3500
GO
----------------------------------------------------------------------------

-- Audio Playback ----------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 3600) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (3600, 12460, 133)
ELSE
    UPDATE perms SET permission_desc_id = 12460, permission_sort_order = 133
    WHERE permission_id = 3600
GO
----------------------------------------------------------------------------

-- Audio Talk --------------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 3670) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (3670, 13277, 135)
ELSE
    UPDATE perms SET permission_desc_id = 13277, permission_sort_order = 135
    WHERE permission_id = 3670
GO
----------------------------------------------------------------------------

-- Camera Control ----------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 90) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (90, 11718, 137)
ELSE
    UPDATE perms SET permission_desc_id = 11718, permission_sort_order = 137
    WHERE permission_id = 90
GO
----------------------------------------------------------------------------

-- Analog Output Config ----------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 91) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (91, 13143, 138)
ELSE
    UPDATE perms SET permission_desc_id = 13143, permission_sort_order = 138
    WHERE permission_id = 91
GO
----------------------------------------------------------------------------

-- Analog Sequence Control -------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 92) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (92, 13144, 139)
ELSE
    UPDATE perms SET permission_desc_id = 13144, permission_sort_order = 139
    WHERE permission_id = 92
GO
----------------------------------------------------------------------------

-- Chat --------------------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 3301) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (3301, 15432, 140)
ELSE
    UPDATE perms SET permission_desc_id = 15432, permission_sort_order = 140
    WHERE permission_id = 3301
GO
----------------------------------------------------------------------------

-- Chat Auto Reply ---------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 3300) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (3300, 12229, 141)
ELSE
    UPDATE perms SET permission_desc_id = 12229, permission_sort_order = 141
    WHERE permission_id = 3300
GO
----------------------------------------------------------------------------

-- Allow Updating ----------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 3400) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (3400, 16706, 142)
ELSE
    UPDATE perms SET permission_desc_id = 16706, permission_sort_order = 142
    WHERE permission_id = 3400
GO
----------------------------------------------------------------------------

-- Custom Help Application -------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 68) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (68, 11980, 145)
ELSE
    UPDATE perms SET permission_desc_id = 11980, permission_sort_order = 145
    WHERE permission_id = 68
GO
----------------------------------------------------------------------------

-- Exit Vigil --------------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 75) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (75, 11083, 149)
ELSE
    UPDATE perms SET permission_desc_id = 11083, permission_sort_order = 149
    WHERE permission_id = 75
GO
----------------------------------------------------------------------------

-- Shutdown ----------------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 80) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (80, 11132, 150)
ELSE
    UPDATE perms SET permission_desc_id = 11132, permission_sort_order = 150
    WHERE permission_id = 80
GO
----------------------------------------------------------------------------

-- Launch Client -----------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 93) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (93, 17301, 1120)
ELSE
    UPDATE perms SET permission_desc_id = 17301, permission_sort_order = 1120
    WHERE permission_id = 93
GO
----------------------------------------------------------------------------

-- V-POS Administrator -----------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 10100) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (10100, 16208, 1130)
ELSE
    UPDATE perms SET permission_desc_id = 16208, permission_sort_order = 1130
    WHERE permission_id = 10100
GO
----------------------------------------------------------------------------

-- Client Administrator - Main Interface Mode ------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 10200) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (10200, 16956, 1140)
ELSE
    UPDATE perms SET permission_desc_id = 16956, permission_sort_order = 1140
    WHERE permission_id = 10200
GO
----------------------------------------------------------------------------

-- Footage Range -----------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 10300) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (10300, 17106, 1150)
ELSE
    UPDATE perms SET permission_desc_id = 17106, permission_sort_order = 1150
    WHERE permission_id = 10300
GO
----------------------------------------------------------------------------

-- Archive Import/Export ---------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 10400) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (10400, 17110, 1160)
ELSE
    UPDATE perms SET permission_desc_id = 17110, permission_sort_order = 1160
    WHERE permission_id = 10400
GO
----------------------------------------------------------------------------

-- Allow Audit Log ---------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 10500) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (10500, 17143, 1170)
ELSE
    UPDATE perms SET permission_desc_id = 17143, permission_sort_order = 1170
    WHERE permission_id = 10500
GO
----------------------------------------------------------------------------

-- Display Usage Performance Meter -----------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 10600) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (10600, 17185, 1180)
ELSE
    UPDATE perms SET permission_desc_id = 17185, permission_sort_order = 1180
    WHERE permission_id = 10600
GO
----------------------------------------------------------------------------

-- User Audit Reports ------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 10700) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (10700, 17223, 1190)
ELSE
    UPDATE perms SET permission_desc_id = 17223, permission_sort_order = 1190
    WHERE permission_id = 10700
GO
----------------------------------------------------------------------------

-- User Audit Settings -----------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 10800) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (10800, 17216, 1200)
ELSE
    UPDATE perms SET permission_desc_id = 17216, permission_sort_order = 1200
    WHERE permission_id = 10800
GO
----------------------------------------------------------------------------

-- User Audit Exclusion ----------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 12900) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (12900, 19127, 1205)
ELSE
    UPDATE perms SET permission_desc_id = 19127, permission_sort_order = 1205
    WHERE permission_id = 12900
GO
----------------------------------------------------------------------------

-- Server Alarms -----------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 10900) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (10900, 17267, 1210)
ELSE
    UPDATE perms SET permission_desc_id = 17267, permission_sort_order = 1210
    WHERE permission_id = 10900
GO
----------------------------------------------------------------------------

-- POS/ATM Live ------------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 11000) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (11000, 17268, 1220)
ELSE
    UPDATE perms SET permission_desc_id = 17268, permission_sort_order = 1220
    WHERE permission_id = 11000
GO
----------------------------------------------------------------------------

-- Server Exports ----------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 11100) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (11100, 17269, 1230)
ELSE
    UPDATE perms SET permission_desc_id = 17269, permission_sort_order = 1230
    WHERE permission_id = 11100
GO
----------------------------------------------------------------------------

-- Allow VPOS Events in Client ---------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 11200) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (11200, 17270, 1240)
ELSE
    UPDATE perms SET permission_desc_id = 17270, permission_sort_order = 1240
    WHERE permission_id = 11200
GO
----------------------------------------------------------------------------

-- Allow VPOS POS/ATM Search in Client -------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 11300) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (11300, 17271, 1250)
ELSE
    UPDATE perms SET permission_desc_id = 17271, permission_sort_order = 1250
    WHERE permission_id = 11300
GO
----------------------------------------------------------------------------

-- Allow VPOS Quick Search in Client ---------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 11400) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (11400, 17272, 1260)
ELSE
    UPDATE perms SET permission_desc_id = 17272, permission_sort_order = 1260
    WHERE permission_id = 11400
GO
----------------------------------------------------------------------------

-- Allow Web Interface in Client -------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 11500) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (11500, 17818, 1300)
ELSE
    UPDATE perms SET permission_desc_id = 17818, permission_sort_order = 1300
    WHERE permission_id = 11500
GO
----------------------------------------------------------------------------

-- Allow Remote Export Browser in Client -----------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 11600) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (11600, 18045, 1400)
ELSE
    UPDATE perms SET permission_desc_id = 18045, permission_sort_order = 1400
    WHERE permission_id = 11600
GO
----------------------------------------------------------------------------

-- Allow to use Vigil Relay Server -----------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 11700) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (11700, 18240, 1500)
ELSE
    UPDATE perms SET permission_desc_id = 18240, permission_sort_order = 1500
    WHERE permission_id = 11700
GO
----------------------------------------------------------------------------

-- Allow clearing VPOS event flags -----------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 11800) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (11800, 18286, 1270)
ELSE
    UPDATE perms SET permission_desc_id = 18286, permission_sort_order = 1270
    WHERE permission_id = 11800
GO
----------------------------------------------------------------------------

-- Allow printing ----------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 11900) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (11900, 18302, 1600)
ELSE
    UPDATE perms SET permission_desc_id = 18302, permission_sort_order = 1600
    WHERE permission_id = 11900
GO
----------------------------------------------------------------------------

-- Allow Screen Record in Client -------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 12000) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (12000, 18391, 1700)
ELSE
    UPDATE perms SET permission_desc_id = 18391, permission_sort_order = 1700
    WHERE permission_id = 12000
GO
----------------------------------------------------------------------------

-- Allow Remote Main Stream ------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 12300) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (12300, 18568, 1720)
ELSE
    UPDATE perms SET permission_desc_id = 18568, permission_sort_order = 1720
    WHERE permission_id = 12300
GO
----------------------------------------------------------------------------

-- View Restricted Video ---------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 12400) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (12400, 18652, 1730)
ELSE
    UPDATE perms SET permission_desc_id = 18652, permission_sort_order = 1730
    WHERE permission_id = 12400
GO
----------------------------------------------------------------------------

-- Allow to Restrict Video -------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 12500) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (12500, 18658, 1740)
ELSE
    UPDATE perms SET permission_desc_id = 18658, permission_sort_order = 1740
    WHERE permission_id = 12500
GO
----------------------------------------------------------------------------

-- Manage Restricted Video -------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 12600) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (12600, 18765, 1750)
ELSE
    UPDATE perms SET permission_desc_id = 18765, permission_sort_order = 1750
    WHERE permission_id = 12600
GO
----------------------------------------------------------------------------

-- Allow to Lock Video -----------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 12700) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (12700, 18759, 1760)
ELSE
    UPDATE perms SET permission_desc_id = 18759, permission_sort_order = 1760
    WHERE permission_id = 12700
GO
----------------------------------------------------------------------------

-- Manage Locked Video -----------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 12800) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (12800, 18766, 1770)
ELSE
    UPDATE perms SET permission_desc_id = 18766, permission_sort_order = 1770
    WHERE permission_id = 12800
GO
----------------------------------------------------------------------------

-- Advanced Reporting - Employee Exceptions --------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 13000) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (13000, 19130, 1780)
ELSE
    UPDATE perms SET permission_desc_id = 19130, permission_sort_order = 1780
    WHERE permission_id = 13000
GO
----------------------------------------------------------------------------

-- Advanced Reporting - People Counting ------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 13100) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (13100, 19131, 1790)
ELSE
    UPDATE perms SET permission_desc_id = 19131, permission_sort_order = 1790
    WHERE permission_id = 13100
GO
----------------------------------------------------------------------------

-- Advanced Reporting - Average Dwell Time ---------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 13200) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (13200, 19132, 1800)
ELSE
    UPDATE perms SET permission_desc_id = 19132, permission_sort_order = 1800
    WHERE permission_id = 13200
GO
----------------------------------------------------------------------------

-- Advanced Reporting - Heatmaps -------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 13300) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (13300, 19133, 1810)
ELSE
    UPDATE perms SET permission_desc_id = 19133, permission_sort_order = 1810
    WHERE permission_id = 13300
GO
----------------------------------------------------------------------------

-- Advanced Reporting - Shift Analysis -------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 13400) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (13400, 19194, 1785)
ELSE
    UPDATE perms SET permission_desc_id = 19194, permission_sort_order = 1785
    WHERE permission_id = 13400
GO
----------------------------------------------------------------------------

-- Advanced Reporting - Shift Analysis Settings ----------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 13500) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (13500, 19202, 1787)
ELSE
    UPDATE perms SET permission_desc_id = 19202, permission_sort_order = 1787
    WHERE permission_id = 13500
GO
----------------------------------------------------------------------------

-- Video Channel 1 ---------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 100) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (100, 11067, 1000100)
ELSE
    UPDATE perms SET permission_desc_id = 11067, permission_sort_order = 1000100
    WHERE permission_id = 100
GO
----------------------------------------------------------------------------

-- Video Channel 2 ---------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 200) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (200, 11068, 1000200)
ELSE
    UPDATE perms SET permission_desc_id = 11068, permission_sort_order = 1000200
    WHERE permission_id = 200
GO
----------------------------------------------------------------------------

-- Video Channel 3 ---------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 300) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (300, 11069, 1000300)
ELSE
    UPDATE perms SET permission_desc_id = 11069, permission_sort_order = 1000300
    WHERE permission_id = 300
GO
----------------------------------------------------------------------------

-- Video Channel 4 ---------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 400) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (400, 11070, 1000400)
ELSE
    UPDATE perms SET permission_desc_id = 11070, permission_sort_order = 1000400
    WHERE permission_id = 400
GO
----------------------------------------------------------------------------

-- Video Channel 5 ---------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 500) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (500, 11071, 1000500)
ELSE
    UPDATE perms SET permission_desc_id = 11071, permission_sort_order = 1000500
    WHERE permission_id = 500
GO
----------------------------------------------------------------------------

-- Video Channel 6 ---------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 600) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (600, 11072, 1000600)
ELSE
    UPDATE perms SET permission_desc_id = 11072, permission_sort_order = 1000600
    WHERE permission_id = 600
GO
----------------------------------------------------------------------------

-- Video Channel 7 ---------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 700) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (700, 11073, 1000700)
ELSE
    UPDATE perms SET permission_desc_id = 11073, permission_sort_order = 1000700
    WHERE permission_id = 700
GO
----------------------------------------------------------------------------

-- Video Channel 8 ---------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 800) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (800, 11074, 1000800)
ELSE
    UPDATE perms SET permission_desc_id = 11074, permission_sort_order = 1000800
    WHERE permission_id = 800
GO
----------------------------------------------------------------------------

-- Video Channel 9 ---------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 900) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (900, 11075, 1000900)
ELSE
    UPDATE perms SET permission_desc_id = 11075, permission_sort_order = 1000900
    WHERE permission_id = 900
GO
----------------------------------------------------------------------------

-- Video Channel 10 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1000) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1000, 11076, 1001000)
ELSE
    UPDATE perms SET permission_desc_id = 11076, permission_sort_order = 1001000
    WHERE permission_id = 1000
GO
----------------------------------------------------------------------------

-- Video Channel 11 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1100) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1100, 11077, 1001100)
ELSE
    UPDATE perms SET permission_desc_id = 11077, permission_sort_order = 1001100
    WHERE permission_id = 1100
GO
----------------------------------------------------------------------------

-- Video Channel 12 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1200) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1200, 11078, 1001200)
ELSE
    UPDATE perms SET permission_desc_id = 11078, permission_sort_order = 1001200
    WHERE permission_id = 1200
GO
----------------------------------------------------------------------------

-- Video Channel 13 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1300) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1300, 11079, 1001300)
ELSE
    UPDATE perms SET permission_desc_id = 11079, permission_sort_order = 1001300
    WHERE permission_id = 1300
GO
----------------------------------------------------------------------------

-- Video Channel 14 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1400) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1400, 11080, 1001400)
ELSE
    UPDATE perms SET permission_desc_id = 11080, permission_sort_order = 1001400
    WHERE permission_id = 1400
GO
----------------------------------------------------------------------------

-- Video Channel 15 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1500) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1500, 11081, 1001500)
ELSE
    UPDATE perms SET permission_desc_id = 11081, permission_sort_order = 1001500
    WHERE permission_id = 1500
GO
----------------------------------------------------------------------------

-- Video Channel 16 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1600) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1600, 11082, 1001600)
ELSE
    UPDATE perms SET permission_desc_id = 11082, permission_sort_order = 1001600
    WHERE permission_id = 1600
GO
----------------------------------------------------------------------------

-- Video Channel 17 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1700) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1700, 12212, 1001700)
ELSE
    UPDATE perms SET permission_desc_id = 12212, permission_sort_order = 1001700
    WHERE permission_id = 1700
GO
----------------------------------------------------------------------------

-- Video Channel 18 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1800) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1800, 12213, 1001800)
ELSE
    UPDATE perms SET permission_desc_id = 12213, permission_sort_order = 1001800
    WHERE permission_id = 1800
GO
----------------------------------------------------------------------------

-- Video Channel 19 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1900) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1900, 12214, 1001900)
ELSE
    UPDATE perms SET permission_desc_id = 12214, permission_sort_order = 1001900
    WHERE permission_id = 1900
GO
----------------------------------------------------------------------------

-- Video Channel 20 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2000) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2000, 12215, 1002000)
ELSE
    UPDATE perms SET permission_desc_id = 12215, permission_sort_order = 1002000
    WHERE permission_id = 2000
GO
----------------------------------------------------------------------------

-- Video Channel 21 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2100) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2100, 12216, 1002100)
ELSE
    UPDATE perms SET permission_desc_id = 12216, permission_sort_order = 1002100
    WHERE permission_id = 2100
GO
----------------------------------------------------------------------------

-- Video Channel 22 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2200) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2200, 12217, 1002200)
ELSE
    UPDATE perms SET permission_desc_id = 12217, permission_sort_order = 1002200
    WHERE permission_id = 2200
GO
----------------------------------------------------------------------------

-- Video Channel 23 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2300) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2300, 12218, 1002300)
ELSE
    UPDATE perms SET permission_desc_id = 12218, permission_sort_order = 1002300
    WHERE permission_id = 2300
GO
----------------------------------------------------------------------------

-- Video Channel 24 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2400) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2400, 12219, 1002400)
ELSE
    UPDATE perms SET permission_desc_id = 12219, permission_sort_order = 1002400
    WHERE permission_id = 2400
GO
----------------------------------------------------------------------------

-- Video Channel 25 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2500) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2500, 12220, 1002500)
ELSE
    UPDATE perms SET permission_desc_id = 12220, permission_sort_order = 1002500
    WHERE permission_id = 2500
GO
----------------------------------------------------------------------------

-- Video Channel 26 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2600) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2600, 12221, 1002600)
ELSE
    UPDATE perms SET permission_desc_id = 12221, permission_sort_order = 1002600
    WHERE permission_id = 2600
GO
----------------------------------------------------------------------------

-- Video Channel 27 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2700) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2700, 12222, 1002700)
ELSE
    UPDATE perms SET permission_desc_id = 12222, permission_sort_order = 1002700
    WHERE permission_id = 2700
GO
----------------------------------------------------------------------------

-- Video Channel 28 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2800) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2800, 12223, 1002800)
ELSE
    UPDATE perms SET permission_desc_id = 12223, permission_sort_order = 1002800
    WHERE permission_id = 2800
GO
----------------------------------------------------------------------------

-- Video Channel 29 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2900) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2900, 12224, 1002900)
ELSE
    UPDATE perms SET permission_desc_id = 12224, permission_sort_order = 1002900
    WHERE permission_id = 2900
GO
----------------------------------------------------------------------------

-- Video Channel 30 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 3000) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (3000, 12225, 1003000)
ELSE
    UPDATE perms SET permission_desc_id = 12225, permission_sort_order = 1003000
    WHERE permission_id = 3000
GO
----------------------------------------------------------------------------

-- Video Channel 31 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 3100) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (3100, 12226, 1003100)
ELSE
    UPDATE perms SET permission_desc_id = 12226, permission_sort_order = 1003100
    WHERE permission_id = 3100
GO
----------------------------------------------------------------------------

-- Video Channel 32 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 3200) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (3200, 12227, 1003200)
ELSE
    UPDATE perms SET permission_desc_id = 12227, permission_sort_order = 1003200
    WHERE permission_id = 3200
GO
----------------------------------------------------------------------------

-- Video Channel 33 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1003300) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1003300, 19292, 1003300)
ELSE
    UPDATE perms SET permission_desc_id = 19292, permission_sort_order = 1003300
    WHERE permission_id = 1003300
GO
----------------------------------------------------------------------------

-- Video Channel 34 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1003400) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1003400, 19293, 1003400)
ELSE
    UPDATE perms SET permission_desc_id = 19293, permission_sort_order = 1003400
    WHERE permission_id = 1003400
GO
----------------------------------------------------------------------------

-- Video Channel 35 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1003500) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1003500, 19294, 1003500)
ELSE
    UPDATE perms SET permission_desc_id = 19294, permission_sort_order = 1003500
    WHERE permission_id = 1003500
GO
----------------------------------------------------------------------------

-- Video Channel 36 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1003600) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1003600, 19295, 1003600)
ELSE
    UPDATE perms SET permission_desc_id = 19295, permission_sort_order = 1003600
    WHERE permission_id = 1003600
GO
----------------------------------------------------------------------------

-- Video Channel 37 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1003700) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1003700, 19296, 1003700)
ELSE
    UPDATE perms SET permission_desc_id = 19296, permission_sort_order = 1003700
    WHERE permission_id = 1003700
GO
----------------------------------------------------------------------------

-- Video Channel 38 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1003800) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1003800, 19297, 1003800)
ELSE
    UPDATE perms SET permission_desc_id = 19297, permission_sort_order = 1003800
    WHERE permission_id = 1003800
GO
----------------------------------------------------------------------------

-- Video Channel 39 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1003900) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1003900, 19298, 1003900)
ELSE
    UPDATE perms SET permission_desc_id = 19298, permission_sort_order = 1003900
    WHERE permission_id = 1003900
GO
----------------------------------------------------------------------------

-- Video Channel 40 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1004000) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1004000, 19299, 1004000)
ELSE
    UPDATE perms SET permission_desc_id = 19299, permission_sort_order = 1004000
    WHERE permission_id = 1004000
GO
----------------------------------------------------------------------------

-- Video Channel 41 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1004100) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1004100, 19300, 1004100)
ELSE
    UPDATE perms SET permission_desc_id = 19300, permission_sort_order = 1004100
    WHERE permission_id = 1004100
GO
----------------------------------------------------------------------------

-- Video Channel 42 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1004200) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1004200, 19301, 1004200)
ELSE
    UPDATE perms SET permission_desc_id = 19301, permission_sort_order = 1004200
    WHERE permission_id = 1004200
GO
----------------------------------------------------------------------------

-- Video Channel 43 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1004300) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1004300, 19302, 1004300)
ELSE
    UPDATE perms SET permission_desc_id = 19302, permission_sort_order = 1004300
    WHERE permission_id = 1004300
GO
----------------------------------------------------------------------------

-- Video Channel 44 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1004400) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1004400, 19303, 1004400)
ELSE
    UPDATE perms SET permission_desc_id = 19303, permission_sort_order = 1004400
    WHERE permission_id = 1004400
GO
----------------------------------------------------------------------------

-- Video Channel 45 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1004500) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1004500, 19304, 1004500)
ELSE
    UPDATE perms SET permission_desc_id = 19304, permission_sort_order = 1004500
    WHERE permission_id = 1004500
GO
----------------------------------------------------------------------------

-- Video Channel 46 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1004600) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1004600, 19305, 1004600)
ELSE
    UPDATE perms SET permission_desc_id = 19305, permission_sort_order = 1004600
    WHERE permission_id = 1004600
GO
----------------------------------------------------------------------------

-- Video Channel 47 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1004700) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1004700, 19306, 1004700)
ELSE
    UPDATE perms SET permission_desc_id = 19306, permission_sort_order = 1004700
    WHERE permission_id = 1004700
GO
----------------------------------------------------------------------------

-- Video Channel 48 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1004800) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1004800, 19307, 1004800)
ELSE
    UPDATE perms SET permission_desc_id = 19307, permission_sort_order = 1004800
    WHERE permission_id = 1004800
GO
----------------------------------------------------------------------------

-- Video Channel 49 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1004900) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1004900, 19308, 1004900)
ELSE
    UPDATE perms SET permission_desc_id = 19308, permission_sort_order = 1004900
    WHERE permission_id = 1004900
GO
----------------------------------------------------------------------------

-- Video Channel 50 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1005000) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1005000, 19309, 1005000)
ELSE
    UPDATE perms SET permission_desc_id = 19309, permission_sort_order = 1005000
    WHERE permission_id = 1005000
GO
----------------------------------------------------------------------------

-- Video Channel 51 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1005100) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1005100, 19310, 1005100)
ELSE
    UPDATE perms SET permission_desc_id = 19310, permission_sort_order = 1005100
    WHERE permission_id = 1005100
GO
----------------------------------------------------------------------------

-- Video Channel 52 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1005200) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1005200, 19311, 1005200)
ELSE
    UPDATE perms SET permission_desc_id = 19311, permission_sort_order = 1005200
    WHERE permission_id = 1005200
GO
----------------------------------------------------------------------------

-- Video Channel 53 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1005300) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1005300, 19312, 1005300)
ELSE
    UPDATE perms SET permission_desc_id = 19312, permission_sort_order = 1005300
    WHERE permission_id = 1005300
GO
----------------------------------------------------------------------------

-- Video Channel 54 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1005400) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1005400, 19313, 1005400)
ELSE
    UPDATE perms SET permission_desc_id = 19313, permission_sort_order = 1005400
    WHERE permission_id = 1005400
GO
----------------------------------------------------------------------------

-- Video Channel 55 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1005500) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1005500, 19314, 1005500)
ELSE
    UPDATE perms SET permission_desc_id = 19314, permission_sort_order = 1005500
    WHERE permission_id = 1005500
GO
----------------------------------------------------------------------------

-- Video Channel 56 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1005600) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1005600, 19315, 1005600)
ELSE
    UPDATE perms SET permission_desc_id = 19315, permission_sort_order = 1005600
    WHERE permission_id = 1005600
GO
----------------------------------------------------------------------------

-- Video Channel 57 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1005700) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1005700, 19316, 1005700)
ELSE
    UPDATE perms SET permission_desc_id = 19316, permission_sort_order = 1005700
    WHERE permission_id = 1005700
GO
----------------------------------------------------------------------------

-- Video Channel 58 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1005800) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1005800, 19317, 1005800)
ELSE
    UPDATE perms SET permission_desc_id = 19317, permission_sort_order = 1005800
    WHERE permission_id = 1005800
GO
----------------------------------------------------------------------------

-- Video Channel 59 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1005900) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1005900, 19318, 1005900)
ELSE
    UPDATE perms SET permission_desc_id = 19318, permission_sort_order = 1005900
    WHERE permission_id = 1005900
GO
----------------------------------------------------------------------------

-- Video Channel 60 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1006000) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1006000, 19319, 1006000)
ELSE
    UPDATE perms SET permission_desc_id = 19319, permission_sort_order = 1006000
    WHERE permission_id = 1006000
GO
----------------------------------------------------------------------------

-- Video Channel 61 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1006100) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1006100, 19320, 1006100)
ELSE
    UPDATE perms SET permission_desc_id = 19320, permission_sort_order = 1006100
    WHERE permission_id = 1006100
GO
----------------------------------------------------------------------------

-- Video Channel 62 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1006200) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1006200, 19321, 1006200)
ELSE
    UPDATE perms SET permission_desc_id = 19321, permission_sort_order = 1006200
    WHERE permission_id = 1006200
GO
----------------------------------------------------------------------------

-- Video Channel 63 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1006300) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1006300, 19322, 1006300)
ELSE
    UPDATE perms SET permission_desc_id = 19322, permission_sort_order = 1006300
    WHERE permission_id = 1006300
GO
----------------------------------------------------------------------------

-- Video Channel 64 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1006400) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1006400, 19323, 1006400)
ELSE
    UPDATE perms SET permission_desc_id = 19323, permission_sort_order = 1006400
    WHERE permission_id = 1006400
GO
----------------------------------------------------------------------------

-- Video Channel 65 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1006500) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1006500, 19324, 1006500)
ELSE
    UPDATE perms SET permission_desc_id = 19324, permission_sort_order = 1006500
    WHERE permission_id = 1006500
GO
----------------------------------------------------------------------------

-- Video Channel 66 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1006600) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1006600, 19325, 1006600)
ELSE
    UPDATE perms SET permission_desc_id = 19325, permission_sort_order = 1006600
    WHERE permission_id = 1006600
GO
----------------------------------------------------------------------------

-- Video Channel 67 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1006700) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1006700, 19326, 1006700)
ELSE
    UPDATE perms SET permission_desc_id = 19326, permission_sort_order = 1006700
    WHERE permission_id = 1006700
GO
----------------------------------------------------------------------------

-- Video Channel 68 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1006800) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1006800, 19327, 1006800)
ELSE
    UPDATE perms SET permission_desc_id = 19327, permission_sort_order = 1006800
    WHERE permission_id = 1006800
GO
----------------------------------------------------------------------------

-- Video Channel 69 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1006900) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1006900, 19328, 1006900)
ELSE
    UPDATE perms SET permission_desc_id = 19328, permission_sort_order = 1006900
    WHERE permission_id = 1006900
GO
----------------------------------------------------------------------------

-- Video Channel 70 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1007000) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1007000, 19329, 1007000)
ELSE
    UPDATE perms SET permission_desc_id = 19329, permission_sort_order = 1007000
    WHERE permission_id = 1007000
GO
----------------------------------------------------------------------------

-- Video Channel 71 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1007100) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1007100, 19330, 1007100)
ELSE
    UPDATE perms SET permission_desc_id = 19330, permission_sort_order = 1007100
    WHERE permission_id = 1007100
GO
----------------------------------------------------------------------------

-- Video Channel 72 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1007200) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1007200, 19331, 1007200)
ELSE
    UPDATE perms SET permission_desc_id = 19331, permission_sort_order = 1007200
    WHERE permission_id = 1007200
GO
----------------------------------------------------------------------------

-- Video Channel 73 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1007300) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1007300, 19332, 1007300)
ELSE
    UPDATE perms SET permission_desc_id = 19332, permission_sort_order = 1007300
    WHERE permission_id = 1007300
GO
----------------------------------------------------------------------------

-- Video Channel 74 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1007400) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1007400, 19333, 1007400)
ELSE
    UPDATE perms SET permission_desc_id = 19333, permission_sort_order = 1007400
    WHERE permission_id = 1007400
GO
----------------------------------------------------------------------------

-- Video Channel 75 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1007500) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1007500, 19334, 1007500)
ELSE
    UPDATE perms SET permission_desc_id = 19334, permission_sort_order = 1007500
    WHERE permission_id = 1007500
GO
----------------------------------------------------------------------------

-- Video Channel 76 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1007600) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1007600, 19335, 1007600)
ELSE
    UPDATE perms SET permission_desc_id = 19335, permission_sort_order = 1007600
    WHERE permission_id = 1007600
GO
----------------------------------------------------------------------------

-- Video Channel 77 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1007700) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1007700, 19336, 1007700)
ELSE
    UPDATE perms SET permission_desc_id = 19336, permission_sort_order = 1007700
    WHERE permission_id = 1007700
GO
----------------------------------------------------------------------------

-- Video Channel 78 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1007800) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1007800, 19337, 1007800)
ELSE
    UPDATE perms SET permission_desc_id = 19337, permission_sort_order = 1007800
    WHERE permission_id = 1007800
GO
----------------------------------------------------------------------------

-- Video Channel 79 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1007900) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1007900, 19338, 1007900)
ELSE
    UPDATE perms SET permission_desc_id = 19338, permission_sort_order = 1007900
    WHERE permission_id = 1007900
GO
----------------------------------------------------------------------------

-- Video Channel 80 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1008000) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1008000, 19339, 1008000)
ELSE
    UPDATE perms SET permission_desc_id = 19339, permission_sort_order = 1008000
    WHERE permission_id = 1008000
GO
----------------------------------------------------------------------------

-- Video Channel 81 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1008100) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1008100, 19340, 1008100)
ELSE
    UPDATE perms SET permission_desc_id = 19340, permission_sort_order = 1008100
    WHERE permission_id = 1008100
GO
----------------------------------------------------------------------------

-- Video Channel 82 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1008200) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1008200, 19341, 1008200)
ELSE
    UPDATE perms SET permission_desc_id = 19341, permission_sort_order = 1008200
    WHERE permission_id = 1008200
GO
----------------------------------------------------------------------------

-- Video Channel 83 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1008300) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1008300, 19342, 1008300)
ELSE
    UPDATE perms SET permission_desc_id = 19342, permission_sort_order = 1008300
    WHERE permission_id = 1008300
GO
----------------------------------------------------------------------------

-- Video Channel 84 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1008400) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1008400, 19343, 1008400)
ELSE
    UPDATE perms SET permission_desc_id = 19343, permission_sort_order = 1008400
    WHERE permission_id = 1008400
GO
----------------------------------------------------------------------------

-- Video Channel 85 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1008500) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1008500, 19344, 1008500)
ELSE
    UPDATE perms SET permission_desc_id = 19344, permission_sort_order = 1008500
    WHERE permission_id = 1008500
GO
----------------------------------------------------------------------------

-- Video Channel 86 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1008600) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1008600, 19345, 1008600)
ELSE
    UPDATE perms SET permission_desc_id = 19345, permission_sort_order = 1008600
    WHERE permission_id = 1008600
GO
----------------------------------------------------------------------------

-- Video Channel 87 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1008700) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1008700, 19346, 1008700)
ELSE
    UPDATE perms SET permission_desc_id = 19346, permission_sort_order = 1008700
    WHERE permission_id = 1008700
GO
----------------------------------------------------------------------------

-- Video Channel 88 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1008800) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1008800, 19347, 1008800)
ELSE
    UPDATE perms SET permission_desc_id = 19347, permission_sort_order = 1008800
    WHERE permission_id = 1008800
GO
----------------------------------------------------------------------------

-- Video Channel 89 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1008900) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1008900, 19348, 1008900)
ELSE
    UPDATE perms SET permission_desc_id = 19348, permission_sort_order = 1008900
    WHERE permission_id = 1008900
GO
----------------------------------------------------------------------------

-- Video Channel 90 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1009000) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1009000, 19349, 1009000)
ELSE
    UPDATE perms SET permission_desc_id = 19349, permission_sort_order = 1009000
    WHERE permission_id = 1009000
GO
----------------------------------------------------------------------------

-- Video Channel 91 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1009100) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1009100, 19350, 1009100)
ELSE
    UPDATE perms SET permission_desc_id = 19350, permission_sort_order = 1009100
    WHERE permission_id = 1009100
GO
----------------------------------------------------------------------------

-- Video Channel 92 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1009200) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1009200, 19351, 1009200)
ELSE
    UPDATE perms SET permission_desc_id = 19351, permission_sort_order = 1009200
    WHERE permission_id = 1009200
GO
----------------------------------------------------------------------------

-- Video Channel 93 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1009300) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1009300, 19352, 1009300)
ELSE
    UPDATE perms SET permission_desc_id = 19352, permission_sort_order = 1009300
    WHERE permission_id = 1009300
GO
----------------------------------------------------------------------------

-- Video Channel 94 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1009400) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1009400, 19353, 1009400)
ELSE
    UPDATE perms SET permission_desc_id = 19353, permission_sort_order = 1009400
    WHERE permission_id = 1009400
GO
----------------------------------------------------------------------------

-- Video Channel 95 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1009500) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1009500, 19354, 1009500)
ELSE
    UPDATE perms SET permission_desc_id = 19354, permission_sort_order = 1009500
    WHERE permission_id = 1009500
GO
----------------------------------------------------------------------------

-- Video Channel 96 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1009600) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1009600, 19355, 1009600)
ELSE
    UPDATE perms SET permission_desc_id = 19355, permission_sort_order = 1009600
    WHERE permission_id = 1009600
GO
----------------------------------------------------------------------------

-- Video Channel 97 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1009700) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1009700, 19356, 1009700)
ELSE
    UPDATE perms SET permission_desc_id = 19356, permission_sort_order = 1009700
    WHERE permission_id = 1009700
GO
----------------------------------------------------------------------------

-- Video Channel 98 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1009800) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1009800, 19357, 1009800)
ELSE
    UPDATE perms SET permission_desc_id = 19357, permission_sort_order = 1009800
    WHERE permission_id = 1009800
GO
----------------------------------------------------------------------------

-- Video Channel 99 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1009900) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1009900, 19358, 1009900)
ELSE
    UPDATE perms SET permission_desc_id = 19358, permission_sort_order = 1009900
    WHERE permission_id = 1009900
GO
----------------------------------------------------------------------------

-- Video Channel 100 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1010000) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1010000, 19359, 1010000)
ELSE
    UPDATE perms SET permission_desc_id = 19359, permission_sort_order = 1010000
    WHERE permission_id = 1010000
GO
----------------------------------------------------------------------------

-- Video Channel 101 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1010100) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1010100, 19360, 1010100)
ELSE
    UPDATE perms SET permission_desc_id = 19360, permission_sort_order = 1010100
    WHERE permission_id = 1010100
GO
----------------------------------------------------------------------------

-- Video Channel 102 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1010200) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1010200, 19361, 1010200)
ELSE
    UPDATE perms SET permission_desc_id = 19361, permission_sort_order = 1010200
    WHERE permission_id = 1010200
GO
----------------------------------------------------------------------------

-- Video Channel 103 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1010300) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1010300, 19362, 1010300)
ELSE
    UPDATE perms SET permission_desc_id = 19362, permission_sort_order = 1010300
    WHERE permission_id = 1010300
GO
----------------------------------------------------------------------------

-- Video Channel 104 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1010400) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1010400, 19363, 1010400)
ELSE
    UPDATE perms SET permission_desc_id = 19363, permission_sort_order = 1010400
    WHERE permission_id = 1010400
GO
----------------------------------------------------------------------------

-- Video Channel 105 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1010500) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1010500, 19364, 1010500)
ELSE
    UPDATE perms SET permission_desc_id = 19364, permission_sort_order = 1010500
    WHERE permission_id = 1010500
GO
----------------------------------------------------------------------------

-- Video Channel 106 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1010600) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1010600, 19365, 1010600)
ELSE
    UPDATE perms SET permission_desc_id = 19365, permission_sort_order = 1010600
    WHERE permission_id = 1010600
GO
----------------------------------------------------------------------------

-- Video Channel 107 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1010700) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1010700, 19366, 1010700)
ELSE
    UPDATE perms SET permission_desc_id = 19366, permission_sort_order = 1010700
    WHERE permission_id = 1010700
GO
----------------------------------------------------------------------------

-- Video Channel 108 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1010800) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1010800, 19367, 1010800)
ELSE
    UPDATE perms SET permission_desc_id = 19367, permission_sort_order = 1010800
    WHERE permission_id = 1010800
GO
----------------------------------------------------------------------------

-- Video Channel 109 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1010900) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1010900, 19368, 1010900)
ELSE
    UPDATE perms SET permission_desc_id = 19368, permission_sort_order = 1010900
    WHERE permission_id = 1010900
GO
----------------------------------------------------------------------------

-- Video Channel 110 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1011000) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1011000, 19369, 1011000)
ELSE
    UPDATE perms SET permission_desc_id = 19369, permission_sort_order = 1011000
    WHERE permission_id = 1011000
GO
----------------------------------------------------------------------------

-- Video Channel 111 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1011100) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1011100, 19370, 1011100)
ELSE
    UPDATE perms SET permission_desc_id = 19370, permission_sort_order = 1011100
    WHERE permission_id = 1011100
GO
----------------------------------------------------------------------------

-- Video Channel 112 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1011200) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1011200, 19371, 1011200)
ELSE
    UPDATE perms SET permission_desc_id = 19371, permission_sort_order = 1011200
    WHERE permission_id = 1011200
GO
----------------------------------------------------------------------------

-- Video Channel 113 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1011300) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1011300, 19372, 1011300)
ELSE
    UPDATE perms SET permission_desc_id = 19372, permission_sort_order = 1011300
    WHERE permission_id = 1011300
GO
----------------------------------------------------------------------------

-- Video Channel 114 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1011400) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1011400, 19373, 1011400)
ELSE
    UPDATE perms SET permission_desc_id = 19373, permission_sort_order = 1011400
    WHERE permission_id = 1011400
GO
----------------------------------------------------------------------------

-- Video Channel 115 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1011500) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1011500, 19374, 1011500)
ELSE
    UPDATE perms SET permission_desc_id = 19374, permission_sort_order = 1011500
    WHERE permission_id = 1011500
GO
----------------------------------------------------------------------------

-- Video Channel 116 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1011600) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1011600, 19375, 1011600)
ELSE
    UPDATE perms SET permission_desc_id = 19375, permission_sort_order = 1011600
    WHERE permission_id = 1011600
GO
----------------------------------------------------------------------------

-- Video Channel 117 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1011700) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1011700, 19376, 1011700)
ELSE
    UPDATE perms SET permission_desc_id = 19376, permission_sort_order = 1011700
    WHERE permission_id = 1011700
GO
----------------------------------------------------------------------------

-- Video Channel 118 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1011800) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1011800, 19377, 1011800)
ELSE
    UPDATE perms SET permission_desc_id = 19377, permission_sort_order = 1011800
    WHERE permission_id = 1011800
GO
----------------------------------------------------------------------------

-- Video Channel 119 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1011900) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1011900, 19378, 1011900)
ELSE
    UPDATE perms SET permission_desc_id = 19378, permission_sort_order = 1011900
    WHERE permission_id = 1011900
GO
----------------------------------------------------------------------------

-- Video Channel 120 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1012000) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1012000, 19379, 1012000)
ELSE
    UPDATE perms SET permission_desc_id = 19379, permission_sort_order = 1012000
    WHERE permission_id = 1012000
GO
----------------------------------------------------------------------------

-- Video Channel 121 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1012100) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1012100, 19380, 1012100)
ELSE
    UPDATE perms SET permission_desc_id = 19380, permission_sort_order = 1012100
    WHERE permission_id = 1012100
GO
----------------------------------------------------------------------------

-- Video Channel 122 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1012200) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1012200, 19381, 1012200)
ELSE
    UPDATE perms SET permission_desc_id = 19381, permission_sort_order = 1012200
    WHERE permission_id = 1012200
GO
----------------------------------------------------------------------------

-- Video Channel 123 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1012300) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1012300, 19382, 1012300)
ELSE
    UPDATE perms SET permission_desc_id = 19382, permission_sort_order = 1012300
    WHERE permission_id = 1012300
GO
----------------------------------------------------------------------------

-- Video Channel 124 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1012400) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1012400, 19383, 1012400)
ELSE
    UPDATE perms SET permission_desc_id = 19383, permission_sort_order = 1012400
    WHERE permission_id = 1012400
GO
----------------------------------------------------------------------------

-- Video Channel 125 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1012500) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1012500, 19384, 1012500)
ELSE
    UPDATE perms SET permission_desc_id = 19384, permission_sort_order = 1012500
    WHERE permission_id = 1012500
GO
----------------------------------------------------------------------------

-- Video Channel 126 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1012600) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1012600, 19385, 1012600)
ELSE
    UPDATE perms SET permission_desc_id = 19385, permission_sort_order = 1012600
    WHERE permission_id = 1012600
GO
----------------------------------------------------------------------------

-- Video Channel 127 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1012700) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1012700, 19386, 1012700)
ELSE
    UPDATE perms SET permission_desc_id = 19386, permission_sort_order = 1012700
    WHERE permission_id = 1012700
GO
----------------------------------------------------------------------------

-- Video Channel 128 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1012800) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1012800, 19387, 1012800)
ELSE
    UPDATE perms SET permission_desc_id = 19387, permission_sort_order = 1012800
    WHERE permission_id = 1012800
GO
----------------------------------------------------------------------------

-- Video Channel 129 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1012900) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1012900, 19388, 1012900)
ELSE
    UPDATE perms SET permission_desc_id = 19388, permission_sort_order = 1012900
    WHERE permission_id = 1012900
GO
----------------------------------------------------------------------------

-- Video Channel 130 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1013000) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1013000, 19389, 1013000)
ELSE
    UPDATE perms SET permission_desc_id = 19389, permission_sort_order = 1013000
    WHERE permission_id = 1013000
GO
----------------------------------------------------------------------------

-- Video Channel 131 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1013100) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1013100, 19390, 1013100)
ELSE
    UPDATE perms SET permission_desc_id = 19390, permission_sort_order = 1013100
    WHERE permission_id = 1013100
GO
----------------------------------------------------------------------------

-- Video Channel 132 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1013200) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1013200, 19391, 1013200)
ELSE
    UPDATE perms SET permission_desc_id = 19391, permission_sort_order = 1013200
    WHERE permission_id = 1013200
GO
----------------------------------------------------------------------------

-- Video Channel 133 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1013300) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1013300, 19392, 1013300)
ELSE
    UPDATE perms SET permission_desc_id = 19392, permission_sort_order = 1013300
    WHERE permission_id = 1013300
GO
----------------------------------------------------------------------------

-- Video Channel 134 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1013400) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1013400, 19393, 1013400)
ELSE
    UPDATE perms SET permission_desc_id = 19393, permission_sort_order = 1013400
    WHERE permission_id = 1013400
GO
----------------------------------------------------------------------------

-- Video Channel 135 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1013500) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1013500, 19394, 1013500)
ELSE
    UPDATE perms SET permission_desc_id = 19394, permission_sort_order = 1013500
    WHERE permission_id = 1013500
GO
----------------------------------------------------------------------------

-- Video Channel 136 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1013600) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1013600, 19395, 1013600)
ELSE
    UPDATE perms SET permission_desc_id = 19395, permission_sort_order = 1013600
    WHERE permission_id = 1013600
GO
----------------------------------------------------------------------------

-- Video Channel 137 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1013700) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1013700, 19396, 1013700)
ELSE
    UPDATE perms SET permission_desc_id = 19396, permission_sort_order = 1013700
    WHERE permission_id = 1013700
GO
----------------------------------------------------------------------------

-- Video Channel 138 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1013800) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1013800, 19397, 1013800)
ELSE
    UPDATE perms SET permission_desc_id = 19397, permission_sort_order = 1013800
    WHERE permission_id = 1013800
GO
----------------------------------------------------------------------------

-- Video Channel 139 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1013900) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1013900, 19398, 1013900)
ELSE
    UPDATE perms SET permission_desc_id = 19398, permission_sort_order = 1013900
    WHERE permission_id = 1013900
GO
----------------------------------------------------------------------------

-- Video Channel 140 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1014000) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1014000, 19399, 1014000)
ELSE
    UPDATE perms SET permission_desc_id = 19399, permission_sort_order = 1014000
    WHERE permission_id = 1014000
GO
----------------------------------------------------------------------------

-- Video Channel 141 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1014100) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1014100, 19400, 1014100)
ELSE
    UPDATE perms SET permission_desc_id = 19400, permission_sort_order = 1014100
    WHERE permission_id = 1014100
GO
----------------------------------------------------------------------------

-- Video Channel 142 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1014200) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1014200, 19401, 1014200)
ELSE
    UPDATE perms SET permission_desc_id = 19401, permission_sort_order = 1014200
    WHERE permission_id = 1014200
GO
----------------------------------------------------------------------------

-- Video Channel 143 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1014300) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1014300, 19402, 1014300)
ELSE
    UPDATE perms SET permission_desc_id = 19402, permission_sort_order = 1014300
    WHERE permission_id = 1014300
GO
----------------------------------------------------------------------------

-- Video Channel 144 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1014400) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1014400, 19403, 1014400)
ELSE
    UPDATE perms SET permission_desc_id = 19403, permission_sort_order = 1014400
    WHERE permission_id = 1014400
GO
----------------------------------------------------------------------------

-- Video Channel 145 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1014500) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1014500, 19404, 1014500)
ELSE
    UPDATE perms SET permission_desc_id = 19404, permission_sort_order = 1014500
    WHERE permission_id = 1014500
GO
----------------------------------------------------------------------------

-- Video Channel 146 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1014600) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1014600, 19405, 1014600)
ELSE
    UPDATE perms SET permission_desc_id = 19405, permission_sort_order = 1014600
    WHERE permission_id = 1014600
GO
----------------------------------------------------------------------------

-- Video Channel 147 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1014700) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1014700, 19406, 1014700)
ELSE
    UPDATE perms SET permission_desc_id = 19406, permission_sort_order = 1014700
    WHERE permission_id = 1014700
GO
----------------------------------------------------------------------------

-- Video Channel 148 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1014800) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1014800, 19407, 1014800)
ELSE
    UPDATE perms SET permission_desc_id = 19407, permission_sort_order = 1014800
    WHERE permission_id = 1014800
GO
----------------------------------------------------------------------------

-- Video Channel 149 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1014900) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1014900, 19408, 1014900)
ELSE
    UPDATE perms SET permission_desc_id = 19408, permission_sort_order = 1014900
    WHERE permission_id = 1014900
GO
----------------------------------------------------------------------------

-- Video Channel 150 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1015000) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1015000, 19409, 1015000)
ELSE
    UPDATE perms SET permission_desc_id = 19409, permission_sort_order = 1015000
    WHERE permission_id = 1015000
GO
----------------------------------------------------------------------------

-- Video Channel 151 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1015100) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1015100, 19410, 1015100)
ELSE
    UPDATE perms SET permission_desc_id = 19410, permission_sort_order = 1015100
    WHERE permission_id = 1015100
GO
----------------------------------------------------------------------------

-- Video Channel 152 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1015200) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1015200, 19411, 1015200)
ELSE
    UPDATE perms SET permission_desc_id = 19411, permission_sort_order = 1015200
    WHERE permission_id = 1015200
GO
----------------------------------------------------------------------------

-- Video Channel 153 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1015300) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1015300, 19412, 1015300)
ELSE
    UPDATE perms SET permission_desc_id = 19412, permission_sort_order = 1015300
    WHERE permission_id = 1015300
GO
----------------------------------------------------------------------------

-- Video Channel 154 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1015400) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1015400, 19413, 1015400)
ELSE
    UPDATE perms SET permission_desc_id = 19413, permission_sort_order = 1015400
    WHERE permission_id = 1015400
GO
----------------------------------------------------------------------------

-- Video Channel 155 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1015500) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1015500, 19414, 1015500)
ELSE
    UPDATE perms SET permission_desc_id = 19414, permission_sort_order = 1015500
    WHERE permission_id = 1015500
GO
----------------------------------------------------------------------------

-- Video Channel 156 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1015600) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1015600, 19415, 1015600)
ELSE
    UPDATE perms SET permission_desc_id = 19415, permission_sort_order = 1015600
    WHERE permission_id = 1015600
GO
----------------------------------------------------------------------------

-- Video Channel 157 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1015700) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1015700, 19416, 1015700)
ELSE
    UPDATE perms SET permission_desc_id = 19416, permission_sort_order = 1015700
    WHERE permission_id = 1015700
GO
----------------------------------------------------------------------------

-- Video Channel 158 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1015800) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1015800, 19417, 1015800)
ELSE
    UPDATE perms SET permission_desc_id = 19417, permission_sort_order = 1015800
    WHERE permission_id = 1015800
GO
----------------------------------------------------------------------------

-- Video Channel 159 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1015900) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1015900, 19418, 1015900)
ELSE
    UPDATE perms SET permission_desc_id = 19418, permission_sort_order = 1015900
    WHERE permission_id = 1015900
GO
----------------------------------------------------------------------------

-- Video Channel 160 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1016000) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1016000, 19419, 1016000)
ELSE
    UPDATE perms SET permission_desc_id = 19419, permission_sort_order = 1016000
    WHERE permission_id = 1016000
GO
----------------------------------------------------------------------------

-- Video Channel 161 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1016100) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1016100, 19420, 1016100)
ELSE
    UPDATE perms SET permission_desc_id = 19420, permission_sort_order = 1016100
    WHERE permission_id = 1016100
GO
----------------------------------------------------------------------------

-- Video Channel 162 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1016200) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1016200, 19421, 1016200)
ELSE
    UPDATE perms SET permission_desc_id = 19421, permission_sort_order = 1016200
    WHERE permission_id = 1016200
GO
----------------------------------------------------------------------------

-- Video Channel 163 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1016300) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1016300, 19422, 1016300)
ELSE
    UPDATE perms SET permission_desc_id = 19422, permission_sort_order = 1016300
    WHERE permission_id = 1016300
GO
----------------------------------------------------------------------------

-- Video Channel 164 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1016400) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1016400, 19423, 1016400)
ELSE
    UPDATE perms SET permission_desc_id = 19423, permission_sort_order = 1016400
    WHERE permission_id = 1016400
GO
----------------------------------------------------------------------------

-- Video Channel 165 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1016500) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1016500, 19424, 1016500)
ELSE
    UPDATE perms SET permission_desc_id = 19424, permission_sort_order = 1016500
    WHERE permission_id = 1016500
GO
----------------------------------------------------------------------------

-- Video Channel 166 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1016600) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1016600, 19425, 1016600)
ELSE
    UPDATE perms SET permission_desc_id = 19425, permission_sort_order = 1016600
    WHERE permission_id = 1016600
GO
----------------------------------------------------------------------------

-- Video Channel 167 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1016700) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1016700, 19426, 1016700)
ELSE
    UPDATE perms SET permission_desc_id = 19426, permission_sort_order = 1016700
    WHERE permission_id = 1016700
GO
----------------------------------------------------------------------------

-- Video Channel 168 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1016800) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1016800, 19427, 1016800)
ELSE
    UPDATE perms SET permission_desc_id = 19427, permission_sort_order = 1016800
    WHERE permission_id = 1016800
GO
----------------------------------------------------------------------------

-- Video Channel 169 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1016900) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1016900, 19428, 1016900)
ELSE
    UPDATE perms SET permission_desc_id = 19428, permission_sort_order = 1016900
    WHERE permission_id = 1016900
GO
----------------------------------------------------------------------------

-- Video Channel 170 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1017000) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1017000, 19429, 1017000)
ELSE
    UPDATE perms SET permission_desc_id = 19429, permission_sort_order = 1017000
    WHERE permission_id = 1017000
GO
----------------------------------------------------------------------------

-- Video Channel 171 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1017100) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1017100, 19430, 1017100)
ELSE
    UPDATE perms SET permission_desc_id = 19430, permission_sort_order = 1017100
    WHERE permission_id = 1017100
GO
----------------------------------------------------------------------------

-- Video Channel 172 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1017200) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1017200, 19431, 1017200)
ELSE
    UPDATE perms SET permission_desc_id = 19431, permission_sort_order = 1017200
    WHERE permission_id = 1017200
GO
----------------------------------------------------------------------------

-- Video Channel 173 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1017300) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1017300, 19432, 1017300)
ELSE
    UPDATE perms SET permission_desc_id = 19432, permission_sort_order = 1017300
    WHERE permission_id = 1017300
GO
----------------------------------------------------------------------------

-- Video Channel 174 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1017400) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1017400, 19433, 1017400)
ELSE
    UPDATE perms SET permission_desc_id = 19433, permission_sort_order = 1017400
    WHERE permission_id = 1017400
GO
----------------------------------------------------------------------------

-- Video Channel 175 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1017500) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1017500, 19434, 1017500)
ELSE
    UPDATE perms SET permission_desc_id = 19434, permission_sort_order = 1017500
    WHERE permission_id = 1017500
GO
----------------------------------------------------------------------------

-- Video Channel 176 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1017600) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1017600, 19435, 1017600)
ELSE
    UPDATE perms SET permission_desc_id = 19435, permission_sort_order = 1017600
    WHERE permission_id = 1017600
GO
----------------------------------------------------------------------------

-- Video Channel 177 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1017700) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1017700, 19436, 1017700)
ELSE
    UPDATE perms SET permission_desc_id = 19436, permission_sort_order = 1017700
    WHERE permission_id = 1017700
GO
----------------------------------------------------------------------------

-- Video Channel 178 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1017800) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1017800, 19437, 1017800)
ELSE
    UPDATE perms SET permission_desc_id = 19437, permission_sort_order = 1017800
    WHERE permission_id = 1017800
GO
----------------------------------------------------------------------------

-- Video Channel 179 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1017900) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1017900, 19438, 1017900)
ELSE
    UPDATE perms SET permission_desc_id = 19438, permission_sort_order = 1017900
    WHERE permission_id = 1017900
GO
----------------------------------------------------------------------------

-- Video Channel 180 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1018000) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1018000, 19439, 1018000)
ELSE
    UPDATE perms SET permission_desc_id = 19439, permission_sort_order = 1018000
    WHERE permission_id = 1018000
GO
----------------------------------------------------------------------------

-- Video Channel 181 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1018100) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1018100, 19440, 1018100)
ELSE
    UPDATE perms SET permission_desc_id = 19440, permission_sort_order = 1018100
    WHERE permission_id = 1018100
GO
----------------------------------------------------------------------------

-- Video Channel 182 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1018200) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1018200, 19441, 1018200)
ELSE
    UPDATE perms SET permission_desc_id = 19441, permission_sort_order = 1018200
    WHERE permission_id = 1018200
GO
----------------------------------------------------------------------------

-- Video Channel 183 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1018300) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1018300, 19442, 1018300)
ELSE
    UPDATE perms SET permission_desc_id = 19442, permission_sort_order = 1018300
    WHERE permission_id = 1018300
GO
----------------------------------------------------------------------------

-- Video Channel 184 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1018400) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1018400, 19443, 1018400)
ELSE
    UPDATE perms SET permission_desc_id = 19443, permission_sort_order = 1018400
    WHERE permission_id = 1018400
GO
----------------------------------------------------------------------------

-- Video Channel 185 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1018500) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1018500, 19444, 1018500)
ELSE
    UPDATE perms SET permission_desc_id = 19444, permission_sort_order = 1018500
    WHERE permission_id = 1018500
GO
----------------------------------------------------------------------------

-- Video Channel 186 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1018600) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1018600, 19445, 1018600)
ELSE
    UPDATE perms SET permission_desc_id = 19445, permission_sort_order = 1018600
    WHERE permission_id = 1018600
GO
----------------------------------------------------------------------------

-- Video Channel 187 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1018700) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1018700, 19446, 1018700)
ELSE
    UPDATE perms SET permission_desc_id = 19446, permission_sort_order = 1018700
    WHERE permission_id = 1018700
GO
----------------------------------------------------------------------------

-- Video Channel 188 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1018800) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1018800, 19447, 1018800)
ELSE
    UPDATE perms SET permission_desc_id = 19447, permission_sort_order = 1018800
    WHERE permission_id = 1018800
GO
----------------------------------------------------------------------------

-- Video Channel 189 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1018900) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1018900, 19448, 1018900)
ELSE
    UPDATE perms SET permission_desc_id = 19448, permission_sort_order = 1018900
    WHERE permission_id = 1018900
GO
----------------------------------------------------------------------------

-- Video Channel 190 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1019000) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1019000, 19449, 1019000)
ELSE
    UPDATE perms SET permission_desc_id = 19449, permission_sort_order = 1019000
    WHERE permission_id = 1019000
GO
----------------------------------------------------------------------------

-- Video Channel 191 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1019100) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1019100, 19450, 1019100)
ELSE
    UPDATE perms SET permission_desc_id = 19450, permission_sort_order = 1019100
    WHERE permission_id = 1019100
GO
----------------------------------------------------------------------------

-- Video Channel 192 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1019200) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1019200, 19451, 1019200)
ELSE
    UPDATE perms SET permission_desc_id = 19451, permission_sort_order = 1019200
    WHERE permission_id = 1019200
GO
----------------------------------------------------------------------------

-- Video Channel 193 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1019300) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1019300, 19452, 1019300)
ELSE
    UPDATE perms SET permission_desc_id = 19452, permission_sort_order = 1019300
    WHERE permission_id = 1019300
GO
----------------------------------------------------------------------------

-- Video Channel 194 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1019400) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1019400, 19453, 1019400)
ELSE
    UPDATE perms SET permission_desc_id = 19453, permission_sort_order = 1019400
    WHERE permission_id = 1019400
GO
----------------------------------------------------------------------------

-- Video Channel 195 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1019500) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1019500, 19454, 1019500)
ELSE
    UPDATE perms SET permission_desc_id = 19454, permission_sort_order = 1019500
    WHERE permission_id = 1019500
GO
----------------------------------------------------------------------------

-- Video Channel 196 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1019600) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1019600, 19455, 1019600)
ELSE
    UPDATE perms SET permission_desc_id = 19455, permission_sort_order = 1019600
    WHERE permission_id = 1019600
GO
----------------------------------------------------------------------------

-- Video Channel 197 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1019700) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1019700, 19456, 1019700)
ELSE
    UPDATE perms SET permission_desc_id = 19456, permission_sort_order = 1019700
    WHERE permission_id = 1019700
GO
----------------------------------------------------------------------------

-- Video Channel 198 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1019800) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1019800, 19457, 1019800)
ELSE
    UPDATE perms SET permission_desc_id = 19457, permission_sort_order = 1019800
    WHERE permission_id = 1019800
GO
----------------------------------------------------------------------------

-- Video Channel 199 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1019900) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1019900, 19458, 1019900)
ELSE
    UPDATE perms SET permission_desc_id = 19458, permission_sort_order = 1019900
    WHERE permission_id = 1019900
GO
----------------------------------------------------------------------------

-- Video Channel 200 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1020000) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1020000, 19459, 1020000)
ELSE
    UPDATE perms SET permission_desc_id = 19459, permission_sort_order = 1020000
    WHERE permission_id = 1020000
GO
----------------------------------------------------------------------------

-- Video Channel 201 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1020100) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1020100, 19460, 1020100)
ELSE
    UPDATE perms SET permission_desc_id = 19460, permission_sort_order = 1020100
    WHERE permission_id = 1020100
GO
----------------------------------------------------------------------------

-- Video Channel 202 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1020200) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1020200, 19461, 1020200)
ELSE
    UPDATE perms SET permission_desc_id = 19461, permission_sort_order = 1020200
    WHERE permission_id = 1020200
GO
----------------------------------------------------------------------------

-- Video Channel 203 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1020300) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1020300, 19462, 1020300)
ELSE
    UPDATE perms SET permission_desc_id = 19462, permission_sort_order = 1020300
    WHERE permission_id = 1020300
GO
----------------------------------------------------------------------------

-- Video Channel 204 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1020400) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1020400, 19463, 1020400)
ELSE
    UPDATE perms SET permission_desc_id = 19463, permission_sort_order = 1020400
    WHERE permission_id = 1020400
GO
----------------------------------------------------------------------------

-- Video Channel 205 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1020500) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1020500, 19464, 1020500)
ELSE
    UPDATE perms SET permission_desc_id = 19464, permission_sort_order = 1020500
    WHERE permission_id = 1020500
GO
----------------------------------------------------------------------------

-- Video Channel 206 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1020600) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1020600, 19465, 1020600)
ELSE
    UPDATE perms SET permission_desc_id = 19465, permission_sort_order = 1020600
    WHERE permission_id = 1020600
GO
----------------------------------------------------------------------------

-- Video Channel 207 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1020700) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1020700, 19466, 1020700)
ELSE
    UPDATE perms SET permission_desc_id = 19466, permission_sort_order = 1020700
    WHERE permission_id = 1020700
GO
----------------------------------------------------------------------------

-- Video Channel 208 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1020800) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1020800, 19467, 1020800)
ELSE
    UPDATE perms SET permission_desc_id = 19467, permission_sort_order = 1020800
    WHERE permission_id = 1020800
GO
----------------------------------------------------------------------------

-- Video Channel 209 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1020900) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1020900, 19468, 1020900)
ELSE
    UPDATE perms SET permission_desc_id = 19468, permission_sort_order = 1020900
    WHERE permission_id = 1020900
GO
----------------------------------------------------------------------------

-- Video Channel 210 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1021000) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1021000, 19469, 1021000)
ELSE
    UPDATE perms SET permission_desc_id = 19469, permission_sort_order = 1021000
    WHERE permission_id = 1021000
GO
----------------------------------------------------------------------------

-- Video Channel 211 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1021100) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1021100, 19470, 1021100)
ELSE
    UPDATE perms SET permission_desc_id = 19470, permission_sort_order = 1021100
    WHERE permission_id = 1021100
GO
----------------------------------------------------------------------------

-- Video Channel 212 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1021200) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1021200, 19471, 1021200)
ELSE
    UPDATE perms SET permission_desc_id = 19471, permission_sort_order = 1021200
    WHERE permission_id = 1021200
GO
----------------------------------------------------------------------------

-- Video Channel 213 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1021300) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1021300, 19472, 1021300)
ELSE
    UPDATE perms SET permission_desc_id = 19472, permission_sort_order = 1021300
    WHERE permission_id = 1021300
GO
----------------------------------------------------------------------------

-- Video Channel 214 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1021400) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1021400, 19473, 1021400)
ELSE
    UPDATE perms SET permission_desc_id = 19473, permission_sort_order = 1021400
    WHERE permission_id = 1021400
GO
----------------------------------------------------------------------------

-- Video Channel 215 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1021500) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1021500, 19474, 1021500)
ELSE
    UPDATE perms SET permission_desc_id = 19474, permission_sort_order = 1021500
    WHERE permission_id = 1021500
GO
----------------------------------------------------------------------------

-- Video Channel 216 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1021600) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1021600, 19475, 1021600)
ELSE
    UPDATE perms SET permission_desc_id = 19475, permission_sort_order = 1021600
    WHERE permission_id = 1021600
GO
----------------------------------------------------------------------------

-- Video Channel 217 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1021700) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1021700, 19476, 1021700)
ELSE
    UPDATE perms SET permission_desc_id = 19476, permission_sort_order = 1021700
    WHERE permission_id = 1021700
GO
----------------------------------------------------------------------------

-- Video Channel 218 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1021800) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1021800, 19477, 1021800)
ELSE
    UPDATE perms SET permission_desc_id = 19477, permission_sort_order = 1021800
    WHERE permission_id = 1021800
GO
----------------------------------------------------------------------------

-- Video Channel 219 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1021900) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1021900, 19478, 1021900)
ELSE
    UPDATE perms SET permission_desc_id = 19478, permission_sort_order = 1021900
    WHERE permission_id = 1021900
GO
----------------------------------------------------------------------------

-- Video Channel 220 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1022000) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1022000, 19479, 1022000)
ELSE
    UPDATE perms SET permission_desc_id = 19479, permission_sort_order = 1022000
    WHERE permission_id = 1022000
GO
----------------------------------------------------------------------------

-- Video Channel 221 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1022100) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1022100, 19480, 1022100)
ELSE
    UPDATE perms SET permission_desc_id = 19480, permission_sort_order = 1022100
    WHERE permission_id = 1022100
GO
----------------------------------------------------------------------------

-- Video Channel 222 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1022200) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1022200, 19481, 1022200)
ELSE
    UPDATE perms SET permission_desc_id = 19481, permission_sort_order = 1022200
    WHERE permission_id = 1022200
GO
----------------------------------------------------------------------------

-- Video Channel 223 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1022300) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1022300, 19482, 1022300)
ELSE
    UPDATE perms SET permission_desc_id = 19482, permission_sort_order = 1022300
    WHERE permission_id = 1022300
GO
----------------------------------------------------------------------------

-- Video Channel 224 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1022400) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1022400, 19483, 1022400)
ELSE
    UPDATE perms SET permission_desc_id = 19483, permission_sort_order = 1022400
    WHERE permission_id = 1022400
GO
----------------------------------------------------------------------------

-- Video Channel 225 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1022500) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1022500, 19484, 1022500)
ELSE
    UPDATE perms SET permission_desc_id = 19484, permission_sort_order = 1022500
    WHERE permission_id = 1022500
GO
----------------------------------------------------------------------------

-- Video Channel 226 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1022600) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1022600, 19485, 1022600)
ELSE
    UPDATE perms SET permission_desc_id = 19485, permission_sort_order = 1022600
    WHERE permission_id = 1022600
GO
----------------------------------------------------------------------------

-- Video Channel 227 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1022700) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1022700, 19486, 1022700)
ELSE
    UPDATE perms SET permission_desc_id = 19486, permission_sort_order = 1022700
    WHERE permission_id = 1022700
GO
----------------------------------------------------------------------------

-- Video Channel 228 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1022800) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1022800, 19487, 1022800)
ELSE
    UPDATE perms SET permission_desc_id = 19487, permission_sort_order = 1022800
    WHERE permission_id = 1022800
GO
----------------------------------------------------------------------------

-- Video Channel 229 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1022900) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1022900, 19488, 1022900)
ELSE
    UPDATE perms SET permission_desc_id = 19488, permission_sort_order = 1022900
    WHERE permission_id = 1022900
GO
----------------------------------------------------------------------------

-- Video Channel 230 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1023000) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1023000, 19489, 1023000)
ELSE
    UPDATE perms SET permission_desc_id = 19489, permission_sort_order = 1023000
    WHERE permission_id = 1023000
GO
----------------------------------------------------------------------------

-- Video Channel 231 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1023100) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1023100, 19490, 1023100)
ELSE
    UPDATE perms SET permission_desc_id = 19490, permission_sort_order = 1023100
    WHERE permission_id = 1023100
GO
----------------------------------------------------------------------------

-- Video Channel 232 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1023200) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1023200, 19491, 1023200)
ELSE
    UPDATE perms SET permission_desc_id = 19491, permission_sort_order = 1023200
    WHERE permission_id = 1023200
GO
----------------------------------------------------------------------------

-- Video Channel 233 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1023300) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1023300, 19492, 1023300)
ELSE
    UPDATE perms SET permission_desc_id = 19492, permission_sort_order = 1023300
    WHERE permission_id = 1023300
GO
----------------------------------------------------------------------------

-- Video Channel 234 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1023400) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1023400, 19493, 1023400)
ELSE
    UPDATE perms SET permission_desc_id = 19493, permission_sort_order = 1023400
    WHERE permission_id = 1023400
GO
----------------------------------------------------------------------------

-- Video Channel 235 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1023500) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1023500, 19494, 1023500)
ELSE
    UPDATE perms SET permission_desc_id = 19494, permission_sort_order = 1023500
    WHERE permission_id = 1023500
GO
----------------------------------------------------------------------------

-- Video Channel 236 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1023600) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1023600, 19495, 1023600)
ELSE
    UPDATE perms SET permission_desc_id = 19495, permission_sort_order = 1023600
    WHERE permission_id = 1023600
GO
----------------------------------------------------------------------------

-- Video Channel 237 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1023700) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1023700, 19496, 1023700)
ELSE
    UPDATE perms SET permission_desc_id = 19496, permission_sort_order = 1023700
    WHERE permission_id = 1023700
GO
----------------------------------------------------------------------------

-- Video Channel 238 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1023800) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1023800, 19497, 1023800)
ELSE
    UPDATE perms SET permission_desc_id = 19497, permission_sort_order = 1023800
    WHERE permission_id = 1023800
GO
----------------------------------------------------------------------------

-- Video Channel 239 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1023900) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1023900, 19498, 1023900)
ELSE
    UPDATE perms SET permission_desc_id = 19498, permission_sort_order = 1023900
    WHERE permission_id = 1023900
GO
----------------------------------------------------------------------------

-- Video Channel 240 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1024000) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1024000, 19499, 1024000)
ELSE
    UPDATE perms SET permission_desc_id = 19499, permission_sort_order = 1024000
    WHERE permission_id = 1024000
GO
----------------------------------------------------------------------------

-- Video Channel 241 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1024100) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1024100, 19500, 1024100)
ELSE
    UPDATE perms SET permission_desc_id = 19500, permission_sort_order = 1024100
    WHERE permission_id = 1024100
GO
----------------------------------------------------------------------------

-- Video Channel 242 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1024200) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1024200, 19501, 1024200)
ELSE
    UPDATE perms SET permission_desc_id = 19501, permission_sort_order = 1024200
    WHERE permission_id = 1024200
GO
----------------------------------------------------------------------------

-- Video Channel 243 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1024300) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1024300, 19502, 1024300)
ELSE
    UPDATE perms SET permission_desc_id = 19502, permission_sort_order = 1024300
    WHERE permission_id = 1024300
GO
----------------------------------------------------------------------------

-- Video Channel 244 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1024400) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1024400, 19503, 1024400)
ELSE
    UPDATE perms SET permission_desc_id = 19503, permission_sort_order = 1024400
    WHERE permission_id = 1024400
GO
----------------------------------------------------------------------------

-- Video Channel 245 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1024500) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1024500, 19504, 1024500)
ELSE
    UPDATE perms SET permission_desc_id = 19504, permission_sort_order = 1024500
    WHERE permission_id = 1024500
GO
----------------------------------------------------------------------------

-- Video Channel 246 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1024600) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1024600, 19505, 1024600)
ELSE
    UPDATE perms SET permission_desc_id = 19505, permission_sort_order = 1024600
    WHERE permission_id = 1024600
GO
----------------------------------------------------------------------------

-- Video Channel 247 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1024700) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1024700, 19506, 1024700)
ELSE
    UPDATE perms SET permission_desc_id = 19506, permission_sort_order = 1024700
    WHERE permission_id = 1024700
GO
----------------------------------------------------------------------------

-- Video Channel 248 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1024800) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1024800, 19507, 1024800)
ELSE
    UPDATE perms SET permission_desc_id = 19507, permission_sort_order = 1024800
    WHERE permission_id = 1024800
GO
----------------------------------------------------------------------------

-- Video Channel 249 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1024900) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1024900, 19508, 1024900)
ELSE
    UPDATE perms SET permission_desc_id = 19508, permission_sort_order = 1024900
    WHERE permission_id = 1024900
GO
----------------------------------------------------------------------------

-- Video Channel 250 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1025000) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1025000, 19509, 1025000)
ELSE
    UPDATE perms SET permission_desc_id = 19509, permission_sort_order = 1025000
    WHERE permission_id = 1025000
GO
----------------------------------------------------------------------------

-- Video Channel 251 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1025100) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1025100, 19510, 1025100)
ELSE
    UPDATE perms SET permission_desc_id = 19510, permission_sort_order = 1025100
    WHERE permission_id = 1025100
GO
----------------------------------------------------------------------------

-- Video Channel 252 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1025200) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1025200, 19511, 1025200)
ELSE
    UPDATE perms SET permission_desc_id = 19511, permission_sort_order = 1025200
    WHERE permission_id = 1025200
GO
----------------------------------------------------------------------------

-- Video Channel 253 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1025300) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1025300, 19512, 1025300)
ELSE
    UPDATE perms SET permission_desc_id = 19512, permission_sort_order = 1025300
    WHERE permission_id = 1025300
GO
----------------------------------------------------------------------------

-- Video Channel 254 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1025400) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1025400, 19513, 1025400)
ELSE
    UPDATE perms SET permission_desc_id = 19513, permission_sort_order = 1025400
    WHERE permission_id = 1025400
GO
----------------------------------------------------------------------------

-- Video Channel 255 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1025500) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1025500, 19514, 1025500)
ELSE
    UPDATE perms SET permission_desc_id = 19514, permission_sort_order = 1025500
    WHERE permission_id = 1025500
GO
----------------------------------------------------------------------------

-- Video Channel 256 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 1025600) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (1025600, 19515, 1025600)
ELSE
    UPDATE perms SET permission_desc_id = 19515, permission_sort_order = 1025600
    WHERE permission_id = 1025600
GO
----------------------------------------------------------------------------

-- Audio Channel 1 ---------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 3700) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (3700, 11963, 2000100)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2000100
    WHERE permission_id = 3700
GO
----------------------------------------------------------------------------

-- Audio Channel 2 ---------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 3800) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (3800, 11963, 2000200)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2000200
    WHERE permission_id = 3800
GO
----------------------------------------------------------------------------

-- Audio Channel 3 ---------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 3900) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (3900, 11963, 2000300)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2000300
    WHERE permission_id = 3900
GO
----------------------------------------------------------------------------

-- Audio Channel 4 ---------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 4000) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (4000, 11963, 2000400)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2000400
    WHERE permission_id = 4000
GO
----------------------------------------------------------------------------

-- Audio Channel 5 ---------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 4100) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (4100, 11963, 2000500)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2000500
    WHERE permission_id = 4100
GO
----------------------------------------------------------------------------

-- Audio Channel 6 ---------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 4200) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (4200, 11963, 2000600)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2000600
    WHERE permission_id = 4200
GO
----------------------------------------------------------------------------

-- Audio Channel 7 ---------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 4300) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (4300, 11963, 2000700)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2000700
    WHERE permission_id = 4300
GO
----------------------------------------------------------------------------

-- Audio Channel 8 ---------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 4400) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (4400, 11963, 2000800)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2000800
    WHERE permission_id = 4400
GO
----------------------------------------------------------------------------

-- Audio Channel 9 ---------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 4500) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (4500, 11963, 2000900)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2000900
    WHERE permission_id = 4500
GO
----------------------------------------------------------------------------

-- Audio Channel 10 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 4600) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (4600, 11963, 2001000)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2001000
    WHERE permission_id = 4600
GO
----------------------------------------------------------------------------

-- Audio Channel 11 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 4700) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (4700, 11963, 2001100)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2001100
    WHERE permission_id = 4700
GO
----------------------------------------------------------------------------

-- Audio Channel 12 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 4800) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (4800, 11963, 2001200)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2001200
    WHERE permission_id = 4800
GO
----------------------------------------------------------------------------

-- Audio Channel 13 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 4900) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (4900, 11963, 2001300)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2001300
    WHERE permission_id = 4900
GO
----------------------------------------------------------------------------

-- Audio Channel 14 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 5000) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (5000, 11963, 2001400)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2001400
    WHERE permission_id = 5000
GO
----------------------------------------------------------------------------

-- Audio Channel 15 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 5100) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (5100, 11963, 2001500)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2001500
    WHERE permission_id = 5100
GO
----------------------------------------------------------------------------

-- Audio Channel 16 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 5200) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (5200, 11963, 2001600)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2001600
    WHERE permission_id = 5200
GO
----------------------------------------------------------------------------

-- Audio Channel 17 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 5300) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (5300, 11963, 2001700)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2001700
    WHERE permission_id = 5300
GO
----------------------------------------------------------------------------

-- Audio Channel 18 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 5400) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (5400, 11963, 2001800)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2001800
    WHERE permission_id = 5400
GO
----------------------------------------------------------------------------

-- Audio Channel 19 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 5500) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (5500, 11963, 2001900)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2001900
    WHERE permission_id = 5500
GO
----------------------------------------------------------------------------

-- Audio Channel 20 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 5600) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (5600, 11963, 2002000)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2002000
    WHERE permission_id = 5600
GO
----------------------------------------------------------------------------

-- Audio Channel 21 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 5700) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (5700, 11963, 2002100)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2002100
    WHERE permission_id = 5700
GO
----------------------------------------------------------------------------

-- Audio Channel 22 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 5800) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (5800, 11963, 2002200)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2002200
    WHERE permission_id = 5800
GO
----------------------------------------------------------------------------

-- Audio Channel 23 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 5900) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (5900, 11963, 2002300)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2002300
    WHERE permission_id = 5900
GO
----------------------------------------------------------------------------

-- Audio Channel 24 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 6000) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (6000, 11963, 2002400)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2002400
    WHERE permission_id = 6000
GO
----------------------------------------------------------------------------

-- Audio Channel 25 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 6100) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (6100, 11963, 2002500)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2002500
    WHERE permission_id = 6100
GO
----------------------------------------------------------------------------

-- Audio Channel 26 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 6200) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (6200, 11963, 2002600)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2002600
    WHERE permission_id = 6200
GO
----------------------------------------------------------------------------

-- Audio Channel 27 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 6300) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (6300, 11963, 2002700)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2002700
    WHERE permission_id = 6300
GO
----------------------------------------------------------------------------

-- Audio Channel 28 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 6400) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (6400, 11963, 2002800)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2002800
    WHERE permission_id = 6400
GO
----------------------------------------------------------------------------

-- Audio Channel 29 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 6500) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (6500, 11963, 2002900)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2002900
    WHERE permission_id = 6500
GO
----------------------------------------------------------------------------

-- Audio Channel 30 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 6600) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (6600, 11963, 2003000)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2003000
    WHERE permission_id = 6600
GO
----------------------------------------------------------------------------

-- Audio Channel 31 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 6700) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (6700, 11963, 2003100)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2003100
    WHERE permission_id = 6700
GO
----------------------------------------------------------------------------

-- Audio Channel 32 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 6800) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (6800, 11963, 2003200)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2003200
    WHERE permission_id = 6800
GO
----------------------------------------------------------------------------

-- Audio Channel 33 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 6900) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (6900, 11963, 2003300)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2003300
    WHERE permission_id = 6900
GO
----------------------------------------------------------------------------

-- Audio Channel 34 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 7000) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (7000, 11963, 2003400)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2003400
    WHERE permission_id = 7000
GO
----------------------------------------------------------------------------

-- Audio Channel 35 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 7100) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (7100, 11963, 2003500)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2003500
    WHERE permission_id = 7100
GO
----------------------------------------------------------------------------

-- Audio Channel 36 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 7200) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (7200, 11963, 2003600)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2003600
    WHERE permission_id = 7200
GO
----------------------------------------------------------------------------

-- Audio Channel 37 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 7300) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (7300, 11963, 2003700)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2003700
    WHERE permission_id = 7300
GO
----------------------------------------------------------------------------

-- Audio Channel 38 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 7400) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (7400, 11963, 2003800)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2003800
    WHERE permission_id = 7400
GO
----------------------------------------------------------------------------

-- Audio Channel 39 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 7500) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (7500, 11963, 2003900)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2003900
    WHERE permission_id = 7500
GO
----------------------------------------------------------------------------

-- Audio Channel 40 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 7600) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (7600, 11963, 2004000)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2004000
    WHERE permission_id = 7600
GO
----------------------------------------------------------------------------

-- Audio Channel 41 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 7700) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (7700, 11963, 2004100)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2004100
    WHERE permission_id = 7700
GO
----------------------------------------------------------------------------

-- Audio Channel 42 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 7800) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (7800, 11963, 2004200)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2004200
    WHERE permission_id = 7800
GO
----------------------------------------------------------------------------

-- Audio Channel 43 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 7900) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (7900, 11963, 2004300)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2004300
    WHERE permission_id = 7900
GO
----------------------------------------------------------------------------

-- Audio Channel 44 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 8000) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (8000, 11963, 2004400)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2004400
    WHERE permission_id = 8000
GO
----------------------------------------------------------------------------

-- Audio Channel 45 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 8100) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (8100, 11963, 2004500)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2004500
    WHERE permission_id = 8100
GO
----------------------------------------------------------------------------

-- Audio Channel 46 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 8200) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (8200, 11963, 2004600)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2004600
    WHERE permission_id = 8200
GO
----------------------------------------------------------------------------

-- Audio Channel 47 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 8300) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (8300, 11963, 2004700)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2004700
    WHERE permission_id = 8300
GO
----------------------------------------------------------------------------

-- Audio Channel 48 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 8400) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (8400, 11963, 2004800)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2004800
    WHERE permission_id = 8400
GO
----------------------------------------------------------------------------

-- Audio Channel 49 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 8500) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (8500, 11963, 2004900)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2004900
    WHERE permission_id = 8500
GO
----------------------------------------------------------------------------

-- Audio Channel 50 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 8600) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (8600, 11963, 2005000)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2005000
    WHERE permission_id = 8600
GO
----------------------------------------------------------------------------

-- Audio Channel 51 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 8700) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (8700, 11963, 2005100)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2005100
    WHERE permission_id = 8700
GO
----------------------------------------------------------------------------

-- Audio Channel 52 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 8800) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (8800, 11963, 2005200)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2005200
    WHERE permission_id = 8800
GO
----------------------------------------------------------------------------

-- Audio Channel 53 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 8900) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (8900, 11963, 2005300)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2005300
    WHERE permission_id = 8900
GO
----------------------------------------------------------------------------

-- Audio Channel 54 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 9000) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (9000, 11963, 2005400)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2005400
    WHERE permission_id = 9000
GO
----------------------------------------------------------------------------

-- Audio Channel 55 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 9100) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (9100, 11963, 2005500)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2005500
    WHERE permission_id = 9100
GO
----------------------------------------------------------------------------

-- Audio Channel 56 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 9200) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (9200, 11963, 2005600)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2005600
    WHERE permission_id = 9200
GO
----------------------------------------------------------------------------

-- Audio Channel 57 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 9300) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (9300, 11963, 2005700)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2005700
    WHERE permission_id = 9300
GO
----------------------------------------------------------------------------

-- Audio Channel 58 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 9400) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (9400, 11963, 2005800)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2005800
    WHERE permission_id = 9400
GO
----------------------------------------------------------------------------

-- Audio Channel 59 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 9500) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (9500, 11963, 2005900)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2005900
    WHERE permission_id = 9500
GO
----------------------------------------------------------------------------

-- Audio Channel 60 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 9600) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (9600, 11963, 2006000)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2006000
    WHERE permission_id = 9600
GO
----------------------------------------------------------------------------

-- Audio Channel 61 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 9700) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (9700, 11963, 2006100)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2006100
    WHERE permission_id = 9700
GO
----------------------------------------------------------------------------

-- Audio Channel 62 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 9800) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (9800, 11963, 2006200)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2006200
    WHERE permission_id = 9800
GO
----------------------------------------------------------------------------

-- Audio Channel 63 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 9900) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (9900, 11963, 2006300)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2006300
    WHERE permission_id = 9900
GO
----------------------------------------------------------------------------

-- Audio Channel 64 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 10000) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (10000, 11963, 2006400)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2006400
    WHERE permission_id = 10000
GO
----------------------------------------------------------------------------

-- Audio Channel 65 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2006500) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2006500, 11963, 2006500)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2006500
    WHERE permission_id = 2006500
GO
----------------------------------------------------------------------------

-- Audio Channel 66 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2006600) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2006600, 11963, 2006600)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2006600
    WHERE permission_id = 2006600
GO
----------------------------------------------------------------------------

-- Audio Channel 67 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2006700) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2006700, 11963, 2006700)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2006700
    WHERE permission_id = 2006700
GO
----------------------------------------------------------------------------

-- Audio Channel 68 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2006800) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2006800, 11963, 2006800)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2006800
    WHERE permission_id = 2006800
GO
----------------------------------------------------------------------------

-- Audio Channel 69 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2006900) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2006900, 11963, 2006900)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2006900
    WHERE permission_id = 2006900
GO
----------------------------------------------------------------------------

-- Audio Channel 70 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2007000) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2007000, 11963, 2007000)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2007000
    WHERE permission_id = 2007000
GO
----------------------------------------------------------------------------

-- Audio Channel 71 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2007100) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2007100, 11963, 2007100)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2007100
    WHERE permission_id = 2007100
GO
----------------------------------------------------------------------------

-- Audio Channel 72 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2007200) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2007200, 11963, 2007200)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2007200
    WHERE permission_id = 2007200
GO
----------------------------------------------------------------------------

-- Audio Channel 73 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2007300) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2007300, 11963, 2007300)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2007300
    WHERE permission_id = 2007300
GO
----------------------------------------------------------------------------

-- Audio Channel 74 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2007400) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2007400, 11963, 2007400)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2007400
    WHERE permission_id = 2007400
GO
----------------------------------------------------------------------------

-- Audio Channel 75 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2007500) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2007500, 11963, 2007500)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2007500
    WHERE permission_id = 2007500
GO
----------------------------------------------------------------------------

-- Audio Channel 76 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2007600) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2007600, 11963, 2007600)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2007600
    WHERE permission_id = 2007600
GO
----------------------------------------------------------------------------

-- Audio Channel 77 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2007700) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2007700, 11963, 2007700)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2007700
    WHERE permission_id = 2007700
GO
----------------------------------------------------------------------------

-- Audio Channel 78 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2007800) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2007800, 11963, 2007800)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2007800
    WHERE permission_id = 2007800
GO
----------------------------------------------------------------------------

-- Audio Channel 79 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2007900) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2007900, 11963, 2007900)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2007900
    WHERE permission_id = 2007900
GO
----------------------------------------------------------------------------

-- Audio Channel 80 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2008000) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2008000, 11963, 2008000)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2008000
    WHERE permission_id = 2008000
GO
----------------------------------------------------------------------------

-- Audio Channel 81 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2008100) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2008100, 11963, 2008100)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2008100
    WHERE permission_id = 2008100
GO
----------------------------------------------------------------------------

-- Audio Channel 82 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2008200) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2008200, 11963, 2008200)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2008200
    WHERE permission_id = 2008200
GO
----------------------------------------------------------------------------

-- Audio Channel 83 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2008300) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2008300, 11963, 2008300)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2008300
    WHERE permission_id = 2008300
GO
----------------------------------------------------------------------------

-- Audio Channel 84 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2008400) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2008400, 11963, 2008400)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2008400
    WHERE permission_id = 2008400
GO
----------------------------------------------------------------------------

-- Audio Channel 85 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2008500) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2008500, 11963, 2008500)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2008500
    WHERE permission_id = 2008500
GO
----------------------------------------------------------------------------

-- Audio Channel 86 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2008600) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2008600, 11963, 2008600)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2008600
    WHERE permission_id = 2008600
GO
----------------------------------------------------------------------------

-- Audio Channel 87 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2008700) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2008700, 11963, 2008700)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2008700
    WHERE permission_id = 2008700
GO
----------------------------------------------------------------------------

-- Audio Channel 88 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2008800) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2008800, 11963, 2008800)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2008800
    WHERE permission_id = 2008800
GO
----------------------------------------------------------------------------

-- Audio Channel 89 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2008900) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2008900, 11963, 2008900)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2008900
    WHERE permission_id = 2008900
GO
----------------------------------------------------------------------------

-- Audio Channel 90 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2009000) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2009000, 11963, 2009000)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2009000
    WHERE permission_id = 2009000
GO
----------------------------------------------------------------------------

-- Audio Channel 91 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2009100) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2009100, 11963, 2009100)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2009100
    WHERE permission_id = 2009100
GO
----------------------------------------------------------------------------

-- Audio Channel 92 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2009200) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2009200, 11963, 2009200)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2009200
    WHERE permission_id = 2009200
GO
----------------------------------------------------------------------------

-- Audio Channel 93 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2009300) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2009300, 11963, 2009300)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2009300
    WHERE permission_id = 2009300
GO
----------------------------------------------------------------------------

-- Audio Channel 94 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2009400) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2009400, 11963, 2009400)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2009400
    WHERE permission_id = 2009400
GO
----------------------------------------------------------------------------

-- Audio Channel 95 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2009500) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2009500, 11963, 2009500)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2009500
    WHERE permission_id = 2009500
GO
----------------------------------------------------------------------------

-- Audio Channel 96 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2009600) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2009600, 11963, 2009600)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2009600
    WHERE permission_id = 2009600
GO
----------------------------------------------------------------------------

-- Audio Channel 97 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2009700) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2009700, 11963, 2009700)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2009700
    WHERE permission_id = 2009700
GO
----------------------------------------------------------------------------

-- Audio Channel 98 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2009800) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2009800, 11963, 2009800)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2009800
    WHERE permission_id = 2009800
GO
----------------------------------------------------------------------------

-- Audio Channel 99 --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2009900) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2009900, 11963, 2009900)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2009900
    WHERE permission_id = 2009900
GO
----------------------------------------------------------------------------

-- Audio Channel 100 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2010000) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2010000, 11963, 2010000)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2010000
    WHERE permission_id = 2010000
GO
----------------------------------------------------------------------------

-- Audio Channel 101 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2010100) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2010100, 11963, 2010100)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2010100
    WHERE permission_id = 2010100
GO
----------------------------------------------------------------------------

-- Audio Channel 102 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2010200) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2010200, 11963, 2010200)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2010200
    WHERE permission_id = 2010200
GO
----------------------------------------------------------------------------

-- Audio Channel 103 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2010300) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2010300, 11963, 2010300)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2010300
    WHERE permission_id = 2010300
GO
----------------------------------------------------------------------------

-- Audio Channel 104 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2010400) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2010400, 11963, 2010400)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2010400
    WHERE permission_id = 2010400
GO
----------------------------------------------------------------------------

-- Audio Channel 105 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2010500) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2010500, 11963, 2010500)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2010500
    WHERE permission_id = 2010500
GO
----------------------------------------------------------------------------

-- Audio Channel 106 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2010600) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2010600, 11963, 2010600)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2010600
    WHERE permission_id = 2010600
GO
----------------------------------------------------------------------------

-- Audio Channel 107 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2010700) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2010700, 11963, 2010700)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2010700
    WHERE permission_id = 2010700
GO
----------------------------------------------------------------------------

-- Audio Channel 108 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2010800) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2010800, 11963, 2010800)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2010800
    WHERE permission_id = 2010800
GO
----------------------------------------------------------------------------

-- Audio Channel 109 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2010900) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2010900, 11963, 2010900)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2010900
    WHERE permission_id = 2010900
GO
----------------------------------------------------------------------------

-- Audio Channel 110 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2011000) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2011000, 11963, 2011000)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2011000
    WHERE permission_id = 2011000
GO
----------------------------------------------------------------------------

-- Audio Channel 111 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2011100) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2011100, 11963, 2011100)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2011100
    WHERE permission_id = 2011100
GO
----------------------------------------------------------------------------

-- Audio Channel 112 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2011200) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2011200, 11963, 2011200)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2011200
    WHERE permission_id = 2011200
GO
----------------------------------------------------------------------------

-- Audio Channel 113 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2011300) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2011300, 11963, 2011300)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2011300
    WHERE permission_id = 2011300
GO
----------------------------------------------------------------------------

-- Audio Channel 114 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2011400) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2011400, 11963, 2011400)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2011400
    WHERE permission_id = 2011400
GO
----------------------------------------------------------------------------

-- Audio Channel 115 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2011500) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2011500, 11963, 2011500)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2011500
    WHERE permission_id = 2011500
GO
----------------------------------------------------------------------------

-- Audio Channel 116 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2011600) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2011600, 11963, 2011600)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2011600
    WHERE permission_id = 2011600
GO
----------------------------------------------------------------------------

-- Audio Channel 117 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2011700) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2011700, 11963, 2011700)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2011700
    WHERE permission_id = 2011700
GO
----------------------------------------------------------------------------

-- Audio Channel 118 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2011800) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2011800, 11963, 2011800)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2011800
    WHERE permission_id = 2011800
GO
----------------------------------------------------------------------------

-- Audio Channel 119 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2011900) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2011900, 11963, 2011900)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2011900
    WHERE permission_id = 2011900
GO
----------------------------------------------------------------------------

-- Audio Channel 120 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2012000) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2012000, 11963, 2012000)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2012000
    WHERE permission_id = 2012000
GO
----------------------------------------------------------------------------

-- Audio Channel 121 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2012100) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2012100, 11963, 2012100)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2012100
    WHERE permission_id = 2012100
GO
----------------------------------------------------------------------------

-- Audio Channel 122 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2012200) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2012200, 11963, 2012200)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2012200
    WHERE permission_id = 2012200
GO
----------------------------------------------------------------------------

-- Audio Channel 123 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2012300) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2012300, 11963, 2012300)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2012300
    WHERE permission_id = 2012300
GO
----------------------------------------------------------------------------

-- Audio Channel 124 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2012400) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2012400, 11963, 2012400)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2012400
    WHERE permission_id = 2012400
GO
----------------------------------------------------------------------------

-- Audio Channel 125 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2012500) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2012500, 11963, 2012500)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2012500
    WHERE permission_id = 2012500
GO
----------------------------------------------------------------------------

-- Audio Channel 126 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2012600) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2012600, 11963, 2012600)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2012600
    WHERE permission_id = 2012600
GO
----------------------------------------------------------------------------

-- Audio Channel 127 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2012700) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2012700, 11963, 2012700)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2012700
    WHERE permission_id = 2012700
GO
----------------------------------------------------------------------------

-- Audio Channel 128 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2012800) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2012800, 11963, 2012800)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2012800
    WHERE permission_id = 2012800
GO
----------------------------------------------------------------------------

-- Audio Channel 129 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2012900) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2012900, 11963, 2012900)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2012900
    WHERE permission_id = 2012900
GO
----------------------------------------------------------------------------

-- Audio Channel 130 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2013000) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2013000, 11963, 2013000)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2013000
    WHERE permission_id = 2013000
GO
----------------------------------------------------------------------------

-- Audio Channel 131 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2013100) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2013100, 11963, 2013100)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2013100
    WHERE permission_id = 2013100
GO
----------------------------------------------------------------------------

-- Audio Channel 132 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2013200) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2013200, 11963, 2013200)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2013200
    WHERE permission_id = 2013200
GO
----------------------------------------------------------------------------

-- Audio Channel 133 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2013300) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2013300, 11963, 2013300)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2013300
    WHERE permission_id = 2013300
GO
----------------------------------------------------------------------------

-- Audio Channel 134 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2013400) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2013400, 11963, 2013400)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2013400
    WHERE permission_id = 2013400
GO
----------------------------------------------------------------------------

-- Audio Channel 135 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2013500) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2013500, 11963, 2013500)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2013500
    WHERE permission_id = 2013500
GO
----------------------------------------------------------------------------

-- Audio Channel 136 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2013600) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2013600, 11963, 2013600)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2013600
    WHERE permission_id = 2013600
GO
----------------------------------------------------------------------------

-- Audio Channel 137 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2013700) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2013700, 11963, 2013700)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2013700
    WHERE permission_id = 2013700
GO
----------------------------------------------------------------------------

-- Audio Channel 138 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2013800) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2013800, 11963, 2013800)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2013800
    WHERE permission_id = 2013800
GO
----------------------------------------------------------------------------

-- Audio Channel 139 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2013900) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2013900, 11963, 2013900)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2013900
    WHERE permission_id = 2013900
GO
----------------------------------------------------------------------------

-- Audio Channel 140 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2014000) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2014000, 11963, 2014000)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2014000
    WHERE permission_id = 2014000
GO
----------------------------------------------------------------------------

-- Audio Channel 141 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2014100) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2014100, 11963, 2014100)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2014100
    WHERE permission_id = 2014100
GO
----------------------------------------------------------------------------

-- Audio Channel 142 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2014200) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2014200, 11963, 2014200)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2014200
    WHERE permission_id = 2014200
GO
----------------------------------------------------------------------------

-- Audio Channel 143 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2014300) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2014300, 11963, 2014300)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2014300
    WHERE permission_id = 2014300
GO
----------------------------------------------------------------------------

-- Audio Channel 144 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2014400) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2014400, 11963, 2014400)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2014400
    WHERE permission_id = 2014400
GO
----------------------------------------------------------------------------

-- Audio Channel 145 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2014500) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2014500, 11963, 2014500)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2014500
    WHERE permission_id = 2014500
GO
----------------------------------------------------------------------------

-- Audio Channel 146 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2014600) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2014600, 11963, 2014600)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2014600
    WHERE permission_id = 2014600
GO
----------------------------------------------------------------------------

-- Audio Channel 147 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2014700) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2014700, 11963, 2014700)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2014700
    WHERE permission_id = 2014700
GO
----------------------------------------------------------------------------

-- Audio Channel 148 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2014800) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2014800, 11963, 2014800)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2014800
    WHERE permission_id = 2014800
GO
----------------------------------------------------------------------------

-- Audio Channel 149 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2014900) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2014900, 11963, 2014900)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2014900
    WHERE permission_id = 2014900
GO
----------------------------------------------------------------------------

-- Audio Channel 150 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2015000) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2015000, 11963, 2015000)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2015000
    WHERE permission_id = 2015000
GO
----------------------------------------------------------------------------

-- Audio Channel 151 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2015100) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2015100, 11963, 2015100)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2015100
    WHERE permission_id = 2015100
GO
----------------------------------------------------------------------------

-- Audio Channel 152 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2015200) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2015200, 11963, 2015200)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2015200
    WHERE permission_id = 2015200
GO
----------------------------------------------------------------------------

-- Audio Channel 153 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2015300) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2015300, 11963, 2015300)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2015300
    WHERE permission_id = 2015300
GO
----------------------------------------------------------------------------

-- Audio Channel 154 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2015400) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2015400, 11963, 2015400)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2015400
    WHERE permission_id = 2015400
GO
----------------------------------------------------------------------------

-- Audio Channel 155 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2015500) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2015500, 11963, 2015500)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2015500
    WHERE permission_id = 2015500
GO
----------------------------------------------------------------------------

-- Audio Channel 156 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2015600) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2015600, 11963, 2015600)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2015600
    WHERE permission_id = 2015600
GO
----------------------------------------------------------------------------

-- Audio Channel 157 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2015700) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2015700, 11963, 2015700)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2015700
    WHERE permission_id = 2015700
GO
----------------------------------------------------------------------------

-- Audio Channel 158 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2015800) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2015800, 11963, 2015800)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2015800
    WHERE permission_id = 2015800
GO
----------------------------------------------------------------------------

-- Audio Channel 159 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2015900) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2015900, 11963, 2015900)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2015900
    WHERE permission_id = 2015900
GO
----------------------------------------------------------------------------

-- Audio Channel 160 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2016000) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2016000, 11963, 2016000)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2016000
    WHERE permission_id = 2016000
GO
----------------------------------------------------------------------------

-- Audio Channel 161 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2016100) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2016100, 11963, 2016100)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2016100
    WHERE permission_id = 2016100
GO
----------------------------------------------------------------------------

-- Audio Channel 162 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2016200) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2016200, 11963, 2016200)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2016200
    WHERE permission_id = 2016200
GO
----------------------------------------------------------------------------

-- Audio Channel 163 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2016300) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2016300, 11963, 2016300)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2016300
    WHERE permission_id = 2016300
GO
----------------------------------------------------------------------------

-- Audio Channel 164 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2016400) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2016400, 11963, 2016400)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2016400
    WHERE permission_id = 2016400
GO
----------------------------------------------------------------------------

-- Audio Channel 165 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2016500) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2016500, 11963, 2016500)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2016500
    WHERE permission_id = 2016500
GO
----------------------------------------------------------------------------

-- Audio Channel 166 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2016600) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2016600, 11963, 2016600)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2016600
    WHERE permission_id = 2016600
GO
----------------------------------------------------------------------------

-- Audio Channel 167 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2016700) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2016700, 11963, 2016700)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2016700
    WHERE permission_id = 2016700
GO
----------------------------------------------------------------------------

-- Audio Channel 168 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2016800) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2016800, 11963, 2016800)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2016800
    WHERE permission_id = 2016800
GO
----------------------------------------------------------------------------

-- Audio Channel 169 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2016900) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2016900, 11963, 2016900)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2016900
    WHERE permission_id = 2016900
GO
----------------------------------------------------------------------------

-- Audio Channel 170 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2017000) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2017000, 11963, 2017000)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2017000
    WHERE permission_id = 2017000
GO
----------------------------------------------------------------------------

-- Audio Channel 171 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2017100) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2017100, 11963, 2017100)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2017100
    WHERE permission_id = 2017100
GO
----------------------------------------------------------------------------

-- Audio Channel 172 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2017200) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2017200, 11963, 2017200)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2017200
    WHERE permission_id = 2017200
GO
----------------------------------------------------------------------------

-- Audio Channel 173 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2017300) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2017300, 11963, 2017300)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2017300
    WHERE permission_id = 2017300
GO
----------------------------------------------------------------------------

-- Audio Channel 174 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2017400) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2017400, 11963, 2017400)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2017400
    WHERE permission_id = 2017400
GO
----------------------------------------------------------------------------

-- Audio Channel 175 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2017500) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2017500, 11963, 2017500)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2017500
    WHERE permission_id = 2017500
GO
----------------------------------------------------------------------------

-- Audio Channel 176 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2017600) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2017600, 11963, 2017600)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2017600
    WHERE permission_id = 2017600
GO
----------------------------------------------------------------------------

-- Audio Channel 177 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2017700) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2017700, 11963, 2017700)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2017700
    WHERE permission_id = 2017700
GO
----------------------------------------------------------------------------

-- Audio Channel 178 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2017800) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2017800, 11963, 2017800)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2017800
    WHERE permission_id = 2017800
GO
----------------------------------------------------------------------------

-- Audio Channel 179 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2017900) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2017900, 11963, 2017900)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2017900
    WHERE permission_id = 2017900
GO
----------------------------------------------------------------------------

-- Audio Channel 180 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2018000) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2018000, 11963, 2018000)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2018000
    WHERE permission_id = 2018000
GO
----------------------------------------------------------------------------

-- Audio Channel 181 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2018100) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2018100, 11963, 2018100)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2018100
    WHERE permission_id = 2018100
GO
----------------------------------------------------------------------------

-- Audio Channel 182 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2018200) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2018200, 11963, 2018200)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2018200
    WHERE permission_id = 2018200
GO
----------------------------------------------------------------------------

-- Audio Channel 183 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2018300) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2018300, 11963, 2018300)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2018300
    WHERE permission_id = 2018300
GO
----------------------------------------------------------------------------

-- Audio Channel 184 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2018400) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2018400, 11963, 2018400)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2018400
    WHERE permission_id = 2018400
GO
----------------------------------------------------------------------------

-- Audio Channel 185 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2018500) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2018500, 11963, 2018500)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2018500
    WHERE permission_id = 2018500
GO
----------------------------------------------------------------------------

-- Audio Channel 186 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2018600) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2018600, 11963, 2018600)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2018600
    WHERE permission_id = 2018600
GO
----------------------------------------------------------------------------

-- Audio Channel 187 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2018700) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2018700, 11963, 2018700)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2018700
    WHERE permission_id = 2018700
GO
----------------------------------------------------------------------------

-- Audio Channel 188 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2018800) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2018800, 11963, 2018800)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2018800
    WHERE permission_id = 2018800
GO
----------------------------------------------------------------------------

-- Audio Channel 189 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2018900) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2018900, 11963, 2018900)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2018900
    WHERE permission_id = 2018900
GO
----------------------------------------------------------------------------

-- Audio Channel 190 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2019000) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2019000, 11963, 2019000)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2019000
    WHERE permission_id = 2019000
GO
----------------------------------------------------------------------------

-- Audio Channel 191 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2019100) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2019100, 11963, 2019100)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2019100
    WHERE permission_id = 2019100
GO
----------------------------------------------------------------------------

-- Audio Channel 192 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2019200) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2019200, 11963, 2019200)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2019200
    WHERE permission_id = 2019200
GO
----------------------------------------------------------------------------

-- Audio Channel 193 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2019300) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2019300, 11963, 2019300)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2019300
    WHERE permission_id = 2019300
GO
----------------------------------------------------------------------------

-- Audio Channel 194 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2019400) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2019400, 11963, 2019400)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2019400
    WHERE permission_id = 2019400
GO
----------------------------------------------------------------------------

-- Audio Channel 195 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2019500) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2019500, 11963, 2019500)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2019500
    WHERE permission_id = 2019500
GO
----------------------------------------------------------------------------

-- Audio Channel 196 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2019600) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2019600, 11963, 2019600)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2019600
    WHERE permission_id = 2019600
GO
----------------------------------------------------------------------------

-- Audio Channel 197 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2019700) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2019700, 11963, 2019700)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2019700
    WHERE permission_id = 2019700
GO
----------------------------------------------------------------------------

-- Audio Channel 198 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2019800) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2019800, 11963, 2019800)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2019800
    WHERE permission_id = 2019800
GO
----------------------------------------------------------------------------

-- Audio Channel 199 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2019900) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2019900, 11963, 2019900)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2019900
    WHERE permission_id = 2019900
GO
----------------------------------------------------------------------------

-- Audio Channel 200 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2020000) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2020000, 11963, 2020000)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2020000
    WHERE permission_id = 2020000
GO
----------------------------------------------------------------------------

-- Audio Channel 201 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2020100) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2020100, 11963, 2020100)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2020100
    WHERE permission_id = 2020100
GO
----------------------------------------------------------------------------

-- Audio Channel 202 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2020200) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2020200, 11963, 2020200)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2020200
    WHERE permission_id = 2020200
GO
----------------------------------------------------------------------------

-- Audio Channel 203 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2020300) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2020300, 11963, 2020300)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2020300
    WHERE permission_id = 2020300
GO
----------------------------------------------------------------------------

-- Audio Channel 204 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2020400) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2020400, 11963, 2020400)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2020400
    WHERE permission_id = 2020400
GO
----------------------------------------------------------------------------

-- Audio Channel 205 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2020500) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2020500, 11963, 2020500)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2020500
    WHERE permission_id = 2020500
GO
----------------------------------------------------------------------------

-- Audio Channel 206 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2020600) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2020600, 11963, 2020600)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2020600
    WHERE permission_id = 2020600
GO
----------------------------------------------------------------------------

-- Audio Channel 207 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2020700) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2020700, 11963, 2020700)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2020700
    WHERE permission_id = 2020700
GO
----------------------------------------------------------------------------

-- Audio Channel 208 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2020800) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2020800, 11963, 2020800)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2020800
    WHERE permission_id = 2020800
GO
----------------------------------------------------------------------------

-- Audio Channel 209 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2020900) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2020900, 11963, 2020900)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2020900
    WHERE permission_id = 2020900
GO
----------------------------------------------------------------------------

-- Audio Channel 210 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2021000) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2021000, 11963, 2021000)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2021000
    WHERE permission_id = 2021000
GO
----------------------------------------------------------------------------

-- Audio Channel 211 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2021100) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2021100, 11963, 2021100)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2021100
    WHERE permission_id = 2021100
GO
----------------------------------------------------------------------------

-- Audio Channel 212 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2021200) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2021200, 11963, 2021200)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2021200
    WHERE permission_id = 2021200
GO
----------------------------------------------------------------------------

-- Audio Channel 213 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2021300) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2021300, 11963, 2021300)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2021300
    WHERE permission_id = 2021300
GO
----------------------------------------------------------------------------

-- Audio Channel 214 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2021400) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2021400, 11963, 2021400)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2021400
    WHERE permission_id = 2021400
GO
----------------------------------------------------------------------------

-- Audio Channel 215 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2021500) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2021500, 11963, 2021500)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2021500
    WHERE permission_id = 2021500
GO
----------------------------------------------------------------------------

-- Audio Channel 216 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2021600) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2021600, 11963, 2021600)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2021600
    WHERE permission_id = 2021600
GO
----------------------------------------------------------------------------

-- Audio Channel 217 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2021700) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2021700, 11963, 2021700)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2021700
    WHERE permission_id = 2021700
GO
----------------------------------------------------------------------------

-- Audio Channel 218 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2021800) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2021800, 11963, 2021800)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2021800
    WHERE permission_id = 2021800
GO
----------------------------------------------------------------------------

-- Audio Channel 219 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2021900) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2021900, 11963, 2021900)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2021900
    WHERE permission_id = 2021900
GO
----------------------------------------------------------------------------

-- Audio Channel 220 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2022000) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2022000, 11963, 2022000)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2022000
    WHERE permission_id = 2022000
GO
----------------------------------------------------------------------------

-- Audio Channel 221 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2022100) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2022100, 11963, 2022100)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2022100
    WHERE permission_id = 2022100
GO
----------------------------------------------------------------------------

-- Audio Channel 222 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2022200) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2022200, 11963, 2022200)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2022200
    WHERE permission_id = 2022200
GO
----------------------------------------------------------------------------

-- Audio Channel 223 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2022300) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2022300, 11963, 2022300)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2022300
    WHERE permission_id = 2022300
GO
----------------------------------------------------------------------------

-- Audio Channel 224 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2022400) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2022400, 11963, 2022400)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2022400
    WHERE permission_id = 2022400
GO
----------------------------------------------------------------------------

-- Audio Channel 225 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2022500) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2022500, 11963, 2022500)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2022500
    WHERE permission_id = 2022500
GO
----------------------------------------------------------------------------

-- Audio Channel 226 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2022600) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2022600, 11963, 2022600)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2022600
    WHERE permission_id = 2022600
GO
----------------------------------------------------------------------------

-- Audio Channel 227 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2022700) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2022700, 11963, 2022700)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2022700
    WHERE permission_id = 2022700
GO
----------------------------------------------------------------------------

-- Audio Channel 228 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2022800) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2022800, 11963, 2022800)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2022800
    WHERE permission_id = 2022800
GO
----------------------------------------------------------------------------

-- Audio Channel 229 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2022900) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2022900, 11963, 2022900)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2022900
    WHERE permission_id = 2022900
GO
----------------------------------------------------------------------------

-- Audio Channel 230 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2023000) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2023000, 11963, 2023000)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2023000
    WHERE permission_id = 2023000
GO
----------------------------------------------------------------------------

-- Audio Channel 231 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2023100) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2023100, 11963, 2023100)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2023100
    WHERE permission_id = 2023100
GO
----------------------------------------------------------------------------

-- Audio Channel 232 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2023200) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2023200, 11963, 2023200)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2023200
    WHERE permission_id = 2023200
GO
----------------------------------------------------------------------------

-- Audio Channel 233 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2023300) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2023300, 11963, 2023300)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2023300
    WHERE permission_id = 2023300
GO
----------------------------------------------------------------------------

-- Audio Channel 234 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2023400) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2023400, 11963, 2023400)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2023400
    WHERE permission_id = 2023400
GO
----------------------------------------------------------------------------

-- Audio Channel 235 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2023500) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2023500, 11963, 2023500)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2023500
    WHERE permission_id = 2023500
GO
----------------------------------------------------------------------------

-- Audio Channel 236 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2023600) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2023600, 11963, 2023600)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2023600
    WHERE permission_id = 2023600
GO
----------------------------------------------------------------------------

-- Audio Channel 237 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2023700) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2023700, 11963, 2023700)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2023700
    WHERE permission_id = 2023700
GO
----------------------------------------------------------------------------

-- Audio Channel 238 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2023800) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2023800, 11963, 2023800)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2023800
    WHERE permission_id = 2023800
GO
----------------------------------------------------------------------------

-- Audio Channel 239 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2023900) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2023900, 11963, 2023900)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2023900
    WHERE permission_id = 2023900
GO
----------------------------------------------------------------------------

-- Audio Channel 240 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2024000) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2024000, 11963, 2024000)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2024000
    WHERE permission_id = 2024000
GO
----------------------------------------------------------------------------

-- Audio Channel 241 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2024100) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2024100, 11963, 2024100)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2024100
    WHERE permission_id = 2024100
GO
----------------------------------------------------------------------------

-- Audio Channel 242 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2024200) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2024200, 11963, 2024200)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2024200
    WHERE permission_id = 2024200
GO
----------------------------------------------------------------------------

-- Audio Channel 243 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2024300) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2024300, 11963, 2024300)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2024300
    WHERE permission_id = 2024300
GO
----------------------------------------------------------------------------

-- Audio Channel 244 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2024400) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2024400, 11963, 2024400)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2024400
    WHERE permission_id = 2024400
GO
----------------------------------------------------------------------------

-- Audio Channel 245 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2024500) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2024500, 11963, 2024500)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2024500
    WHERE permission_id = 2024500
GO
----------------------------------------------------------------------------

-- Audio Channel 246 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2024600) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2024600, 11963, 2024600)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2024600
    WHERE permission_id = 2024600
GO
----------------------------------------------------------------------------

-- Audio Channel 247 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2024700) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2024700, 11963, 2024700)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2024700
    WHERE permission_id = 2024700
GO
----------------------------------------------------------------------------

-- Audio Channel 248 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2024800) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2024800, 11963, 2024800)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2024800
    WHERE permission_id = 2024800
GO
----------------------------------------------------------------------------

-- Audio Channel 249 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2024900) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2024900, 11963, 2024900)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2024900
    WHERE permission_id = 2024900
GO
----------------------------------------------------------------------------

-- Audio Channel 250 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2025000) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2025000, 11963, 2025000)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2025000
    WHERE permission_id = 2025000
GO
----------------------------------------------------------------------------

-- Audio Channel 251 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2025100) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2025100, 11963, 2025100)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2025100
    WHERE permission_id = 2025100
GO
----------------------------------------------------------------------------

-- Audio Channel 252 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2025200) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2025200, 11963, 2025200)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2025200
    WHERE permission_id = 2025200
GO
----------------------------------------------------------------------------

-- Audio Channel 253 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2025300) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2025300, 11963, 2025300)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2025300
    WHERE permission_id = 2025300
GO
----------------------------------------------------------------------------

-- Audio Channel 254 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2025400) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2025400, 11963, 2025400)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2025400
    WHERE permission_id = 2025400
GO
----------------------------------------------------------------------------

-- Audio Channel 255 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2025500) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2025500, 11963, 2025500)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2025500
    WHERE permission_id = 2025500
GO
----------------------------------------------------------------------------

-- Audio Channel 256 -------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2025600) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2025600, 11963, 2025600)
ELSE
    UPDATE perms SET permission_desc_id = 11963, permission_sort_order = 2025600
    WHERE permission_id = 2025600
GO
----------------------------------------------------------------------------

-- User Modify Permission --------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2025700) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2025700, 19831, 61)
ELSE
    UPDATE perms SET permission_desc_id = 19831, permission_sort_order = 61
    WHERE permission_id = 2025700
GO
----------------------------------------------------------------------------

-- Add/Remove Users --------------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2025800) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2025800, 19832, 62)
ELSE
    UPDATE perms SET permission_desc_id = 19832, permission_sort_order = 62
    WHERE permission_id = 2025800
GO
----------------------------------------------------------------------------

-- Restrict Add Users to Own Group -----------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2025900) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2025900, 19833, 63)
ELSE
    UPDATE perms SET permission_desc_id = 19833, permission_sort_order = 63
    WHERE permission_id = 2025900
GO
----------------------------------------------------------------------------

-- Allow Add/Remove Group --------------------------------------------------
IF (SELECT COUNT(*) FROM perms WHERE permission_id = 2026600) = 0
    INSERT INTO perms (permission_id, permission_desc_id, permission_sort_order)
    VALUES (2026600, 19854, 64)
ELSE
    UPDATE perms SET permission_desc_id = 19854, permission_sort_order = 64
    WHERE permission_id = 2026600
GO
----------------------------------------------------------------------------

SET NOCOUNT OFF
GO
