@CustomFields = (
    {
        Name        => 'SLA',
        Queue       => 0,
        Type        => 'SelectSingle',
        Disabled    => 0,
        Description => 'Service Level Agreement',
        Values      => [ ],
    },
);

@ScripConditions = (
    {  Name        => '[SLA] Require default', # loc
       Description => 'Detect a situation when we should set default service level' , # loc
       ApplicableTransTypes => 'Create',
       ExecModule => 'SLA_RequireDefault',
    },
    {  Name        => '[SLA] Require Starts set', # loc
       Description => 'Detect a situation when we should set Starts date' , # loc
       ApplicableTransTypes => 'Create,CustomField',
       ExecModule => 'SLA_RequireStartsSet',
    },
    {  Name        => '[SLA] Require Due set', # loc
       Description => 'Detect a situation when we should set Due date' , # loc
       ApplicableTransTypes => 'Create,CustomField,Correspond,Set,Status',
       ExecModule => 'SLA_RequireDueSet',
    },
);

@ScripActions = (
    {  Name        => '[SLA] Set default service level', # loc
       Description => 'Set service level according to the config' , # loc
       ExecModule  => 'SLA_SetDefault',
    },
    {  Name        => '[SLA] Set starts date', # loc
       Description => 'Set the starts date according to an agreement' , # loc
       ExecModule  => 'SLA_SetStarts',
    },
    {  Name        => '[SLA] Set due date', # loc
       Description => 'Set the due date according to an agreement' , # loc
       ExecModule  => 'SLA_SetDue',
    },
);

@Scrips = (
    {  Description       => "[SLA] Set default service level if needed",
       ScripCondition    => '[SLA] Require Default',
       ScripAction       => '[SLA] Set default service level',
       Template          => 'Blank' },
    {  Description       => "[SLA] Set starts date if needed",
       ScripCondition    => '[SLA] Require starts set',
       ScripAction       => '[SLA] Set starts date',
       Template          => 'Blank' },
    {  Description       => "[SLA] Set due date if needed",
       ScripCondition    => '[SLA] Require due set',
       ScripAction       => '[SLA] Set due date',
       Template          => 'Blank' },
);

