/ database / seeders / TemplateSeeder.php
TemplateSeeder.php
   1  <?php
   2  
   3  namespace Database\Seeders;
   4  
   5  use App\Enums\MeetTypeEnum;
   6  use App\Models\Document;
   7  use App\Models\DocumentType;
   8  use App\Models\Dossier;
   9  use App\Models\Role;
  10  use App\Models\Template;
  11  use App\Models\User;
  12  use Carbon\Carbon;
  13  use Carbon\Exceptions\InvalidFormatException;
  14  use Illuminate\Contracts\Container\BindingResolutionException;
  15  use Illuminate\Database\Eloquent\Collection;
  16  use Illuminate\Database\Eloquent\MassAssignmentException;
  17  use Illuminate\Database\Seeder;
  18  use Illuminate\Support\Facades\DB;
  19  use Illuminate\Support\Facades\Storage;
  20  use LaravelIdea\Helper\App\Models\_IH_Role_C;
  21  use League\Flysystem\UnableToRetrieveMetadata;
  22  use League\Flysystem\FilesystemException;
  23  use Psr\Container\NotFoundExceptionInterface;
  24  use Psr\Container\ContainerExceptionInterface;
  25  
  26  class TemplateSeeder extends Seeder
  27  {
  28      /**
  29       * @var Role[]|Collection|_IH_Role_C
  30       */
  31      private array|_IH_Role_C|Collection $roles;
  32  
  33      /**
  34       * Run the database seeds.
  35       *
  36       * @return void
  37       */
  38      public function run()
  39      {
  40          $this->roles = Role::all(['id', 'name']);
  41  
  42          //Hay que hacer esto porque cambian los nombres de las plantillas según que tipo de route sea
  43          //Podría unificarse en un solo nombre para mejorarlo
  44          match (config('template.TEMPLATE_ROUTE')) {
  45              'normal' => DB::table('templates')->insert($this->getNormalTemplates()),
  46              'custom' => DB::table('templates')->insert($this->getCustomTemplates()),
  47              default => DB::table('templates')->insert($this->getNormalTemplates()),
  48          };
  49      }
  50  
  51      /**
  52       * @deprecated
  53       * @param Template $template
  54       * @return void
  55       * @throws UnableToRetrieveMetadata
  56       * @throws FilesystemException
  57       * @throws InvalidFormatException
  58       * @throws BindingResolutionException
  59       * @throws NotFoundExceptionInterface
  60       * @throws ContainerExceptionInterface
  61       * @throws MassAssignmentException
  62       */
  63      private function templateDocumentSeeder(Template $template): void
  64      {
  65          $data = [];
  66          $user = User::first();
  67          $dossier = Dossier::first();
  68  
  69          $data['template_id'] = $template->id;
  70          $data['revision_name'] = $template->filename;
  71  
  72          $data['path'] = $template->path;
  73          $data['size'] = Storage::size($data['path']);
  74          $data['hash'] = md5_file(Storage::path($template->path));
  75          $data['description'] = '';
  76          $data['created_by'] = $user->id;
  77          $data['dossier_id'] = $dossier->id;
  78  
  79          $typeName = explode('/', $template->path)[1];
  80          $typeName = explode('_', $typeName)[0];
  81  
  82          $data['type_id'] = DocumentType::where('code', $typeName)->first()->id;
  83  
  84          if ($template->document_type_id === 11) {
  85              $date = Carbon::today()->format('Y-m-d');
  86              $nameDossier = $dossier->code_year . '-' . $dossier->code_seq;
  87              $nameFile = 'informe' . '_' . fake()->word;
  88              $originalName = implode('_', [$date, $nameDossier, $nameFile, 'v1.0.zip']); // 2021-01-01_2021-01_informe_ATE_v1.0.zip
  89              $data['original_name'] = $originalName; // Si es un EXT
  90          }
  91  
  92          $document = Document::create($data);
  93          $document->commit($data);
  94      }
  95  
  96      private function getNormalTemplates()
  97      {
  98          //EN ESTAS TEMPLATES, LAS REGIONES NOT E INF, NO COICIDEN CON LOS FICHEROS EN LAS CARPETAS
  99          return [
 100              #region ACT
 101              [
 102                  'name' => 'ReunionExpediente-EN-v1',
 103                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/ACT_templates/ReunionExpediente-EN-v1.docx',
 104                  'filename' => 'ReunionExpediente-EN-v1.docx',
 105                  'document_type_id' => 1,
 106                  'reviewer_role_id' => $this->role('quality_manager'),
 107                  'approver_role_id' => $this->role('technical_manager'),
 108                  'meet_type_id' => MeetTypeEnum::dossierMeeting()->value,
 109                  'custom_path' => null,
 110                  'date_custom_path' => null,
 111                  'is_certification' => false,
 112                  'can_draft' => true,
 113              ],
 114              [
 115                  'name' => 'ReunionInicio-EN-v1',
 116                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/ACT_templates/ReunionInicio-EN-v1.docx',
 117                  'filename' => 'ReunionInicio-EN-v1.docx',
 118                  'document_type_id' => 1,
 119                  'reviewer_role_id' => $this->role('quality_manager'),
 120                  'approver_role_id' => $this->role('technical_manager'),
 121                  'meet_type_id' => MeetTypeEnum::startMeeting()->value,
 122                  'custom_path' => null,
 123                  'date_custom_path' => null,
 124                  'is_certification' => false,
 125                  'can_draft' => true,
 126              ],
 127              [
 128                  'name' => 'ReunionAudienciaEstimatoria-EN-v1',
 129                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/ACT_templates/ReunionAudienciaEstimatoria-EN-v1.docx',
 130                  'filename' => 'ReunionAudienciaEstimatoria-EN-v1.docx',
 131                  'document_type_id' => 1,
 132                  'reviewer_role_id' => $this->role('quality_manager'),
 133                  'approver_role_id' => $this->role('technical_manager'),
 134                  'meet_type_id' => MeetTypeEnum::estimationHearingMeeting()->value,
 135                  'custom_path' => null,
 136                  'date_custom_path' => null,
 137                  'is_certification' => false,
 138                  'can_draft' => true,
 139              ],
 140              [
 141                  'name' => 'ReunionAudienciaAnulacion-EN-v1',
 142                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/ACT_templates/ReunionAudienciaAnulacion-EN-v1.docx',
 143                  'filename' => 'ReunionAudienciaAnulacion-EN-v1.docx',
 144                  'document_type_id' => 1,
 145                  'reviewer_role_id' => $this->role('quality_manager'),
 146                  'approver_role_id' => $this->role('technical_manager'),
 147                  'meet_type_id' => MeetTypeEnum::cancellationHearingMeeting()->value,
 148                  'custom_path' => null,
 149                  'date_custom_path' => null,
 150                  'is_certification' => false,
 151                  'can_draft' => true,
 152              ],
 153              [
 154                  'name' => 'ReunionInicioAuditoria-EN-v1',
 155                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/ACT_templates/ReunionInicioAuditoria-EN-v1.docx',
 156                  'filename' => 'ReunionInicioAuditoria-EN-v1.docx',
 157                  'document_type_id' => 1,
 158                  'reviewer_role_id' => $this->role('quality_manager'),
 159                  'approver_role_id' => $this->role('technical_manager'),
 160                  'meet_type_id' => MeetTypeEnum::startAuditMeeting()->value,
 161                  'custom_path' => null,
 162                  'date_custom_path' => null,
 163                  'is_certification' => false,
 164                  'can_draft' => true,
 165              ],
 166              #endregion ACT
 167  
 168              #region CER
 169              [
 170                  'name' => '20200221_certificado_acreditacion_lab_CC-v1',
 171                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/CER_templates/20200221_certificado_acreditacion_lab_CC-v1.docx',
 172                  'filename' => '20200221_certificado_acreditacion_lab_CC-v1.docx',
 173                  'document_type_id' => 2,
 174                  'reviewer_role_id' => null,
 175                  'approver_role_id' => null,
 176                  'meet_type_id' => null,
 177                  'custom_path' => null,
 178                  'date_custom_path' => null,
 179                  'is_certification' => false,
 180                  'can_draft' => false,
 181              ],
 182              [
 183                  'name' => '20200221_certificado_CC_con_PP_Dom_Tec-v1',
 184                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/CER_templates/20200221_certificado_CC_con_PP_Dom_Tec-v1.docx',
 185                  'filename' => '20200221_certificado_CC_con_PP_Dom_Tec-v1.docx',
 186                  'document_type_id' => 2,
 187                  'reviewer_role_id' => null,
 188                  'approver_role_id' => null,
 189                  'meet_type_id' => null,
 190                  'custom_path' => null,
 191                  'date_custom_path' => null,
 192                  'is_certification' => false,
 193                  'can_draft' => false,
 194              ],
 195              [
 196                  'name' => '20200221_certificado_CC_con_PP_hasta_EAL4-v1',
 197                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/CER_templates/20200221_certificado_CC_con_PP_hasta_EAL4-v1.docx',
 198                  'filename' => '20200221_certificado_CC_con_PP_hasta_EAL4-v1.docx',
 199                  'document_type_id' => 2,
 200                  'reviewer_role_id' => null,
 201                  'approver_role_id' => null,
 202                  'meet_type_id' => null,
 203                  'custom_path' => null,
 204                  'date_custom_path' => null,
 205                  'is_certification' => false,
 206                  'can_draft' => false,
 207              ],
 208              [
 209                  'name' => '20200221_certificado_CC_con_PP_sin_sellos-v1',
 210                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/CER_templates/20200221_certificado_CC_con_PP_sin_sellos-v1.docx',
 211                  'filename' => '20200221_certificado_CC_con_PP_sin_sellos-v1.docx',
 212                  'document_type_id' => 2,
 213                  'reviewer_role_id' => null,
 214                  'approver_role_id' => null,
 215                  'meet_type_id' => null,
 216                  'custom_path' => null,
 217                  'date_custom_path' => null,
 218                  'is_certification' => false,
 219                  'can_draft' => false,
 220              ],
 221              [
 222                  'name' => '20200221_certificado_CC_con_ST_Dom_Tec-v1',
 223                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/CER_templates/20200221_certificado_CC_con_ST_Dom_Tec-v1.docx',
 224                  'filename' => '20200221_certificado_CC_con_ST_Dom_Tec-v1.docx',
 225                  'document_type_id' => 2,
 226                  'reviewer_role_id' => null,
 227                  'approver_role_id' => null,
 228                  'meet_type_id' => null,
 229                  'custom_path' => null,
 230                  'date_custom_path' => null,
 231                  'is_certification' => false,
 232                  'can_draft' => false,
 233              ],
 234              [
 235                  'name' => '20200221_certificado_CC_con_ST_hasta_EAL4-v1',
 236                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/CER_templates/20200221_certificado_CC_con_ST_hasta_EAL4-v1.docx',
 237                  'filename' => '20200221_certificado_CC_con_ST_hasta_EAL4-v1.docx',
 238                  'document_type_id' => 2,
 239                  'reviewer_role_id' => null,
 240                  'approver_role_id' => null,
 241                  'meet_type_id' => null,
 242                  'custom_path' => null,
 243                  'date_custom_path' => null,
 244                  'is_certification' => false,
 245                  'can_draft' => false,
 246              ],
 247              [
 248                  'name' => '20200221_certificado_CC_SITE-v1',
 249                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/CER_templates/20200221_certificado_CC_SITE-v1.docx',
 250                  'filename' => '20200221_certificado_CC_SITE-v1.docx',
 251                  'document_type_id' => 2,
 252                  'reviewer_role_id' => null,
 253                  'approver_role_id' => null,
 254                  'meet_type_id' => null,
 255                  'custom_path' => null,
 256                  'date_custom_path' => null,
 257                  'is_certification' => false,
 258                  'can_draft' => false,
 259              ],
 260              [
 261                  'name' => '20200221_certificado_CC_ST_sin_sellos-v1',
 262                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/CER_templates/20200221_certificado_CC_ST_sin_sellos-v1.docx',
 263                  'filename' => '20200221_certificado_CC_ST_sin_sellos-v1.docx',
 264                  'document_type_id' => 2,
 265                  'reviewer_role_id' => null,
 266                  'approver_role_id' => null,
 267                  'meet_type_id' => null,
 268                  'custom_path' => null,
 269                  'date_custom_path' => null,
 270                  'is_certification' => false,
 271                  'can_draft' => false,
 272              ],
 273              [
 274                  'name' => '20200221_certificado_CCRA_conformant-v1',
 275                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/CER_templates/20200221_certificado_CCRA_conformant-v1.docx',
 276                  'filename' => '20200221_certificado_CCRA_conformant-v1.docx',
 277                  'document_type_id' => 2,
 278                  'reviewer_role_id' => null,
 279                  'approver_role_id' => null,
 280                  'meet_type_id' => null,
 281                  'custom_path' => null,
 282                  'date_custom_path' => null,
 283                  'is_certification' => false,
 284                  'can_draft' => false,
 285              ],
 286              [
 287                  'name' => '20200221_certificado_ITSEC_con_ST-v1',
 288                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/CER_templates/20200221_certificado_ITSEC_con_ST-v1.docx',
 289                  'filename' => '20200221_certificado_ITSEC_con_ST-v1.docx',
 290                  'document_type_id' => 2,
 291                  'reviewer_role_id' => null,
 292                  'approver_role_id' => null,
 293                  'meet_type_id' => null,
 294                  'custom_path' => null,
 295                  'date_custom_path' => null,
 296                  'is_certification' => false,
 297                  'can_draft' => false,
 298              ],
 299              [
 300                  'name' => '20200221_certificado_para_perfil_proteccion-v1',
 301                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/CER_templates/20200221_certificado_para_perfil_proteccion-v1.docx',
 302                  'filename' => '20200221_certificado_para_perfil_proteccion-v1.docx',
 303                  'document_type_id' => 2,
 304                  'reviewer_role_id' => null,
 305                  'approver_role_id' => null,
 306                  'meet_type_id' => null,
 307                  'custom_path' => null,
 308                  'date_custom_path' => null,
 309                  'is_certification' => false,
 310                  'can_draft' => false,
 311              ],
 312              #endregion CER
 313  
 314              #region INF
 315              [
 316                  'name' => 'INF-01-GeneralConExpediente-EN-v1',
 317                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/INF_templates/INF-01-GeneralConExpediente-EN-v1.docx',
 318                  'filename' => 'INF-01-GeneralConExpediente-EN-v1.docx',
 319                  'document_type_id' => 3,
 320                  'reviewer_role_id' => $this->role('quality_manager'),
 321                  'approver_role_id' => $this->role('technical_manager'),
 322                  'meet_type_id' => null,
 323                  'custom_path' => null,
 324                  'date_custom_path' => null,
 325                  'is_certification' => false,
 326                  'can_draft' => true,
 327              ],
 328              [
 329                  'name' => 'INF-02-GeneralSinExpediente-EN-v1',
 330                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/INF_templates/INF-02-GeneralSinExpediente-EN-v1.docx',
 331                  'filename' => 'INF-02-GeneralSinExpediente-EN-v1.docx',
 332                  'document_type_id' => 3,
 333                  'reviewer_role_id' => $this->role('quality_manager'),
 334                  'approver_role_id' => $this->role('technical_manager'),
 335                  'meet_type_id' => null,
 336                  'custom_path' => null,
 337                  'date_custom_path' => null,
 338                  'is_certification' => false,
 339                  'can_draft' => true,
 340              ],
 341              [
 342                  'name' => 'INF-03-ValidacionParcial-EN-v1',
 343                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/INF_templates/INF-03-ValidacionParcial-EN-v1.docx',
 344                  'filename' => 'INF-03-ValidacionParcial-EN-v1.docx',
 345                  'document_type_id' => 3,
 346                  'reviewer_role_id' => $this->role('quality_manager'),
 347                  'approver_role_id' => $this->role('technical_manager'),
 348                  'meet_type_id' => null,
 349                  'custom_path' => null,
 350                  'date_custom_path' => null,
 351                  'is_certification' => false,
 352                  'can_draft' => true,
 353              ],
 354              [
 355                  'name' => 'INF-04-ValidacionETR-EN-v1',
 356                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/INF_templates/INF-04-ValidacionETR-EN-v1.docx',
 357                  'filename' => 'INF-04-ValidacionETR-EN-v1.docx',
 358                  'document_type_id' => 3,
 359                  'reviewer_role_id' => $this->role('quality_manager'),
 360                  'approver_role_id' => $this->role('technical_manager'),
 361                  'meet_type_id' => null,
 362                  'custom_path' => null,
 363                  'date_custom_path' => null,
 364                  'is_certification' => false,
 365                  'can_draft' => true,
 366              ],
 367              [
 368                  'name' => 'INF-05-InformeValidacionSolicitudCertificacion-EN-v1',
 369                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/INF_templates/INF-05-InformeValidacionSolicitudCertificacion-EN-v1.docx',
 370                  'filename' => 'INF-05-InformeValidacionSolicitudCertificacion-EN-v1.docx',
 371                  'document_type_id' => 3,
 372                  'reviewer_role_id' => $this->role('quality_manager'),
 373                  'approver_role_id' => $this->role('technical_manager'),
 374                  'meet_type_id' => null,
 375                  'custom_path' => null,
 376                  'date_custom_path' => null,
 377                  'is_certification' => false,
 378                  'can_draft' => true,
 379              ],
 380              [
 381                  'name' => 'INF-06-RevisionSolicitudAcreditacion-EN-v1',
 382                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/INF_templates/INF-06-RevisionSolicitudAcreditacion-EN-v1.docx',
 383                  'filename' => 'INF-06-RevisionSolicitudAcreditacion-EN-v1.docx',
 384                  'document_type_id' => 3,
 385                  'reviewer_role_id' => $this->role('quality_manager'),
 386                  'approver_role_id' => $this->role('technical_manager'),
 387                  'meet_type_id' => null,
 388                  'custom_path' => null,
 389                  'date_custom_path' => null,
 390                  'is_certification' => false,
 391                  'can_draft' => true,
 392              ],
 393              [
 394                  'name' => 'INF-07-Certificacion-EN-v1',
 395                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/INF_templates/INF-07-Certificacion-EN-v1.docx',
 396                  'filename' => 'INF-07-Certificacion-EN-v1.docx',
 397                  'document_type_id' => 3,
 398                  'reviewer_role_id' => $this->role('quality_manager'),
 399                  'approver_role_id' => $this->role('technical_manager'),
 400                  'meet_type_id' => null,
 401                  'custom_path' => null,
 402                  'date_custom_path' => null,
 403                  'is_certification' => true,
 404                  'can_draft' => true,
 405              ],
 406              [
 407                  'name' => 'INF-08-Certificacion-EN-v1',
 408                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/INF_templates/INF-08-Certificacion-EN-v1.docx',
 409                  'filename' => 'INF-08-Certificacion-EN-v1.docx',
 410                  'document_type_id' => 3,
 411                  'reviewer_role_id' => $this->role('quality_manager'),
 412                  'approver_role_id' => $this->role('technical_manager'),
 413                  'meet_type_id' => null,
 414                  'custom_path' => null,
 415                  'date_custom_path' => null,
 416                  'is_certification' => true,
 417                  'can_draft' => true,
 418              ],
 419              [
 420                  'name' => 'INF-09-Renovacion-EN-v1',
 421                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/INF_templates/INF-09-Renovacion-EN-v1.docx',
 422                  'filename' => 'INF-09-Renovacion-EN-v1.docx',
 423                  'document_type_id' => 3,
 424                  'reviewer_role_id' => $this->role('quality_manager'),
 425                  'approver_role_id' => $this->role('technical_manager'),
 426                  'meet_type_id' => null,
 427                  'custom_path' => null,
 428                  'date_custom_path' => null,
 429                  'is_certification' => false,
 430                  'can_draft' => true,
 431              ],
 432              [
 433                  'name' => 'INF-10-Mantenimiento-EN-v1',
 434                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/INF_templates/INF-10-Mantenimiento-EN-v1.docx',
 435                  'filename' => 'INF-10-Mantenimiento-EN-v1.docx',
 436                  'document_type_id' => 3,
 437                  'reviewer_role_id' => $this->role('quality_manager'),
 438                  'approver_role_id' => $this->role('technical_manager'),
 439                  'meet_type_id' => null,
 440                  'custom_path' => null,
 441                  'date_custom_path' => null,
 442                  'is_certification' => false,
 443                  'can_draft' => true,
 444              ],
 445              [
 446                  'name' => 'INF-11-Vulnerabilidades-EN-v1',
 447                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/INF_templates/INF-11-Vulnerabilidades-EN-v1.docx',
 448                  'filename' => 'INF-11-Vulnerabilidades-EN-v1.docx',
 449                  'document_type_id' => 3,
 450                  'reviewer_role_id' => $this->role('quality_manager'),
 451                  'approver_role_id' => $this->role('technical_manager'),
 452                  'meet_type_id' => null,
 453                  'custom_path' => null,
 454                  'date_custom_path' => null,
 455                  'is_certification' => false,
 456                  'can_draft' => true,
 457              ],
 458              [
 459                  'name' => 'INF-12-ValidacionJSON-EN-v1',
 460                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/INF_templates/INF-12-ValidacionJSON-EN-v1.docx',
 461                  'filename' => 'INF-12-ValidacionJSON-EN-v1.docx',
 462                  'document_type_id' => 3,
 463                  'reviewer_role_id' => $this->role('quality_manager'),
 464                  'approver_role_id' => $this->role('technical_manager'),
 465                  'meet_type_id' => null,
 466                  'custom_path' => null,
 467                  'date_custom_path' => null,
 468                  'is_certification' => false,
 469                  'can_draft' => true,
 470              ],
 471              #endregion INF
 472  
 473              #region INT
 474              [
 475                  'name' => 'INT-01-Interpretacion-EN-v1',
 476                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/INT_templates/INT-01-Interpretacion-EN-v1.docx',
 477                  'filename' => 'INT-01-Interpretacion-EN-v1.docx',
 478                  'document_type_id' => 4,
 479                  'reviewer_role_id' => null,
 480                  'approver_role_id' => null,
 481                  'meet_type_id' => null,
 482                  'custom_path' => null,
 483                  'date_custom_path' => null,
 484                  'is_certification' => false,
 485                  'can_draft' => true,
 486              ],
 487              #endregion INT
 488  
 489              #region MAN
 490              [
 491                  'name' => 'MAN-01-Manual-EN-v1',
 492                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/MAN_templates/MAN-01-Manual-EN-v1.docx',
 493                  'filename' => 'MAN-01-Manual-EN-v1.docx',
 494                  'document_type_id' => 5,
 495                  'reviewer_role_id' => null,
 496                  'approver_role_id' => null,
 497                  'meet_type_id' => null,
 498                  'custom_path' => null,
 499                  'date_custom_path' => null,
 500                  'is_certification' => false,
 501                  'can_draft' => false,
 502              ],
 503              #endregion MAN
 504  
 505              #region NOT
 506              [
 507                  'name' => 'NOT-01-InicioCertificacion-EN-v1',
 508                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/NOT_templates/NOT-01-InicioCertificacion-EN-v1.docx',
 509                  'filename' => 'NOT-01-InicioCertificacion-EN-v1.docx',
 510                  'document_type_id' => 6,
 511                  'reviewer_role_id' => $this->role('quality_manager'),
 512                  'approver_role_id' => $this->role('technical_manager'),
 513                  'meet_type_id' => null,
 514                  'custom_path' => null,
 515                  'date_custom_path' => null,
 516                  'is_certification' => false,
 517                  'can_draft' => true,
 518              ],
 519              [
 520                  'name' => 'NOT-02-InicioAcreditacion-EN-v1',
 521                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/NOT_templates/NOT-02-InicioAcreditacion-EN-v1.docx',
 522                  'filename' => 'NOT-02-InicioAcreditacion-EN-v1.docx',
 523                  'document_type_id' => 6,
 524                  'reviewer_role_id' => $this->role('quality_manager'),
 525                  'approver_role_id' => $this->role('technical_manager'),
 526                  'meet_type_id' => null,
 527                  'custom_path' => null,
 528                  'date_custom_path' => null,
 529                  'is_certification' => false,
 530                  'can_draft' => true,
 531              ],
 532              [
 533                  'name' => 'NOT-03-SubsanacionSolicitudCertificacion-EN-v1',
 534                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/NOT_templates/NOT-03-SubsanacionSolicitudCertificacion-EN-v1.docx',
 535                  'filename' => 'NOT-03-SubsanacionSolicitudCertificacion-EN-v1.docx',
 536                  'document_type_id' => 6,
 537                  'reviewer_role_id' => $this->role('quality_manager'),
 538                  'approver_role_id' => $this->role('technical_manager'),
 539                  'meet_type_id' => null,
 540                  'custom_path' => null,
 541                  'date_custom_path' => null,
 542                  'is_certification' => false,
 543                  'can_draft' => true,
 544              ],
 545              [
 546                  'name' => 'NOT-04-SubsanacionSolicitudAcreditacion-EN-v1',
 547                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/NOT_templates/NOT-04-SubsanacionSolicitudAcreditacion-EN-v1.docx',
 548                  'filename' => 'NOT-04-SubsanacionSolicitudAcreditacion-EN-v1.docx',
 549                  'document_type_id' => 6,
 550                  'reviewer_role_id' => $this->role('quality_manager'),
 551                  'approver_role_id' => $this->role('technical_manager'),
 552                  'meet_type_id' => null,
 553                  'custom_path' => null,
 554                  'date_custom_path' => null,
 555                  'is_certification' => false,
 556                  'can_draft' => true,
 557              ],
 558              [
 559                  'name' => 'NOT-05-CambioPersonalCertificador-EN-v1',
 560                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/NOT_templates/NOT-05-CambioPersonalCertificador-EN-v1.docx',
 561                  'filename' => 'NOT-05-CambioPersonalCertificador-EN-v1.docx',
 562                  'document_type_id' => 6,
 563                  'reviewer_role_id' => $this->role('quality_manager'),
 564                  'approver_role_id' => $this->role('technical_manager'),
 565                  'meet_type_id' => null,
 566                  'custom_path' => null,
 567                  'date_custom_path' => null,
 568                  'is_certification' => false,
 569                  'can_draft' => true,
 570              ],
 571              [
 572                  'name' => 'NOT-06-DesistimientoCertificacion-EN-v1',
 573                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/NOT_templates/NOT-06-DesistimientoCertificacion-EN-v1.docx',
 574                  'filename' => 'NOT-06-DesistimientoCertificacion-EN-v1.docx',
 575                  'document_type_id' => 6,
 576                  'reviewer_role_id' => $this->role('quality_manager'),
 577                  'approver_role_id' => $this->role('technical_manager'),
 578                  'meet_type_id' => null,
 579                  'custom_path' => null,
 580                  'date_custom_path' => null,
 581                  'is_certification' => false,
 582                  'can_draft' => true,
 583              ],
 584              [
 585                  'name' => 'NOT-07-InicioRevisionVigencia-EN-v1',
 586                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/NOT_templates/NOT-07-InicioRevisionVigencia-EN-v1.docx',
 587                  'filename' => 'NOT-07-InicioRevisionVigencia-EN-v1.docx',
 588                  'document_type_id' => 6,
 589                  'reviewer_role_id' => $this->role('quality_manager'),
 590                  'approver_role_id' => $this->role('technical_manager'),
 591                  'meet_type_id' => null,
 592                  'custom_path' => null,
 593                  'date_custom_path' => null,
 594                  'is_certification' => false,
 595                  'can_draft' => true,
 596              ],
 597              [
 598                  'name' => 'NOT-08-FinRevisionVigencia-EN-v1',
 599                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/NOT_templates/NOT-08-FinRevisionVigencia-EN-v1.docx',
 600                  'filename' => 'NOT-08-FinRevisionVigencia-EN-v1.docx',
 601                  'document_type_id' => 6,
 602                  'reviewer_role_id' => $this->role('quality_manager'),
 603                  'approver_role_id' => $this->role('technical_manager'),
 604                  'meet_type_id' => null,
 605                  'custom_path' => null,
 606                  'date_custom_path' => null,
 607                  'is_certification' => false,
 608                  'can_draft' => true,
 609              ],
 610              [
 611                  'name' => 'NOT-09-InicioCertificacion-EN-v1',
 612                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/NOT_templates/NOT-09-InicioCertificacion-EN-v1.docx',
 613                  'filename' => 'NOT-09-InicioCertificacion-EN-v1.docx',
 614                  'document_type_id' => 6,
 615                  'reviewer_role_id' => $this->role('quality_manager'),
 616                  'approver_role_id' => $this->role('technical_manager'),
 617                  'meet_type_id' => null,
 618                  'custom_path' => null,
 619                  'date_custom_path' => null,
 620                  'is_certification' => false,
 621                  'can_draft' => true,
 622              ],
 623              [
 624                  'name' => 'NOT-10-AcreditacionInicioAuditoria-EN-v1',
 625                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/NOT_templates/NOT-10-AcreditacionInicioAuditoria-EN-v1.docx',
 626                  'filename' => 'NOT-10-AcreditacionInicioAuditoria-EN-v1.docx',
 627                  'document_type_id' => 6,
 628                  'reviewer_role_id' => $this->role('quality_manager'),
 629                  'approver_role_id' => $this->role('technical_manager'),
 630                  'meet_type_id' => null,
 631                  'custom_path' => null,
 632                  'date_custom_path' => null,
 633                  'is_certification' => false,
 634                  'can_draft' => true,
 635              ],
 636              [
 637                  'name' => 'NOT-11-SubsanacionSolicitudCertificacion-EN-v1',
 638                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/NOT_templates/NOT-11-SubsanacionSolicitudCertificacion-EN-v1.docx',
 639                  'filename' => 'NOT-11-SubsanacionSolicitudCertificacion-EN-v1.docx',
 640                  'document_type_id' => 6,
 641                  'reviewer_role_id' => $this->role('quality_manager'),
 642                  'approver_role_id' => $this->role('technical_manager'),
 643                  'meet_type_id' => null,
 644                  'custom_path' => null,
 645                  'date_custom_path' => null,
 646                  'is_certification' => false,
 647                  'can_draft' => true,
 648              ],
 649              [
 650                  'name' => 'NOT-12-DesistimientoCertificacion-EN-v1',
 651                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/NOT_templates/NOT-12-DesistimientoCertificacion-EN-v1.docx',
 652                  'filename' => 'NOT-12-DesistimientoCertificacion-EN-v1.docx',
 653                  'document_type_id' => 6,
 654                  'reviewer_role_id' => $this->role('quality_manager'),
 655                  'approver_role_id' => $this->role('technical_manager'),
 656                  'meet_type_id' => null,
 657                  'custom_path' => null,
 658                  'date_custom_path' => null,
 659                  'is_certification' => false,
 660                  'can_draft' => true,
 661              ],
 662              [
 663                  'name' => 'NOT-13-InicioRevisionVigenciaProducto-EN-v1',
 664                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/NOT_templates/NOT-13-InicioRevisionVigenciaProducto-EN-v1.docx',
 665                  'filename' => 'NOT-13-InicioRevisionVigenciaProducto-EN-v1.docx',
 666                  'document_type_id' => 6,
 667                  'reviewer_role_id' => $this->role('quality_manager'),
 668                  'approver_role_id' => $this->role('technical_manager'),
 669                  'meet_type_id' => null,
 670                  'custom_path' => null,
 671                  'date_custom_path' => null,
 672                  'is_certification' => false,
 673                  'can_draft' => true,
 674              ],
 675              [
 676                  'name' => 'NOT-14-RevisionVigenciaInicioProducto-EN-v1',
 677                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/NOT_templates/NOT-14-RevisionVigenciaInicioProducto-EN-v1.docx',
 678                  'filename' => 'NOT-14-RevisionVigenciaInicioProducto-EN-v1.docx',
 679                  'document_type_id' => 6,
 680                  'reviewer_role_id' => $this->role('quality_manager'),
 681                  'approver_role_id' => $this->role('technical_manager'),
 682                  'meet_type_id' => null,
 683                  'custom_path' => null,
 684                  'date_custom_path' => null,
 685                  'is_certification' => false,
 686                  'can_draft' => true,
 687              ],
 688              [
 689                  'name' => 'NOT-15-InicioRevisionVigenciaSite-EN-v1',
 690                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/NOT_templates/NOT-15-InicioRevisionVigenciaSite-EN-v1.docx',
 691                  'filename' => 'NOT-15-InicioRevisionVigenciaSite-EN-v1.docx',
 692                  'document_type_id' => 6,
 693                  'reviewer_role_id' => $this->role('quality_manager'),
 694                  'approver_role_id' => $this->role('technical_manager'),
 695                  'meet_type_id' => null,
 696                  'custom_path' => null,
 697                  'date_custom_path' => null,
 698                  'is_certification' => false,
 699                  'can_draft' => true,
 700              ],
 701              [
 702                  'name' => 'NOT-16-InicioRevisionVigenciaSite-EN-v1',
 703                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/NOT_templates/NOT-16-InicioRevisionVigenciaSite-EN-v1.docx',
 704                  'filename' => 'NOT-16-InicioRevisionVigenciaSite-EN-v1.docx',
 705                  'document_type_id' => 6,
 706                  'reviewer_role_id' => $this->role('quality_manager'),
 707                  'approver_role_id' => $this->role('technical_manager'),
 708                  'meet_type_id' => null,
 709                  'custom_path' => null,
 710                  'date_custom_path' => null,
 711                  'is_certification' => false,
 712                  'can_draft' => true,
 713              ],
 714              [
 715                  'name' => 'NOT-17-CambioPersonalCertificador-EN-v1',
 716                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/NOT_templates/NOT-17-CambioPersonalCertificador-EN-v1.docx',
 717                  'filename' => 'NOT-17-CambioPersonalCertificador-EN-v1.docx',
 718                  'document_type_id' => 6,
 719                  'reviewer_role_id' => $this->role('quality_manager'),
 720                  'approver_role_id' => $this->role('technical_manager'),
 721                  'meet_type_id' => null,
 722                  'custom_path' => null,
 723                  'date_custom_path' => null,
 724                  'is_certification' => false,
 725                  'can_draft' => true,
 726              ],
 727              [
 728                  'name' => 'NOT-18-SolicitudETR-EN-v1',
 729                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/NOT_templates/NOT-18-SolicitudETR-EN-v1.docx',
 730                  'filename' => 'NOT-18-SolicitudETR-EN-v1.docx',
 731                  'document_type_id' => 6,
 732                  'reviewer_role_id' => $this->role('quality_manager'),
 733                  'approver_role_id' => $this->role('technical_manager'),
 734                  'meet_type_id' => null,
 735                  'custom_path' => null,
 736                  'date_custom_path' => null,
 737                  'is_certification' => false,
 738                  'can_draft' => true,
 739              ],
 740              [
 741                  'name' => 'NOT-19-AcreditaciónInicioProceso-EN-v1',
 742                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/NOT_templates/NOT-19-AcreditaciónInicioProceso-EN-v1.docx',
 743                  'filename' => 'NOT-19-AcreditaciónInicioProceso-EN-v1.docx',
 744                  'document_type_id' => 6,
 745                  'reviewer_role_id' => $this->role('quality_manager'),
 746                  'approver_role_id' => $this->role('technical_manager'),
 747                  'meet_type_id' => null,
 748                  'custom_path' => null,
 749                  'date_custom_path' => null,
 750                  'is_certification' => false,
 751                  'can_draft' => true,
 752              ],
 753              [
 754                  'name' => 'NOT-20-RevisionVigenciaFinProducto-EN-v1',
 755                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/NOT_templates/NOT-20-RevisionVigenciaFinProducto-EN-v1.docx',
 756                  'filename' => 'NOT-20-RevisionVigenciaFinProducto-EN-v1.docx',
 757                  'document_type_id' => 6,
 758                  'reviewer_role_id' => $this->role('quality_manager'),
 759                  'approver_role_id' => $this->role('technical_manager'),
 760                  'meet_type_id' => null,
 761                  'custom_path' => null,
 762                  'date_custom_path' => null,
 763                  'is_certification' => false,
 764                  'can_draft' => true,
 765              ],
 766              #endregion NOT
 767  
 768              #region PO
 769              [
 770                  'name' => 'PO-01-Procedimiento-EN-v1',
 771                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/PO_templates/PO-01-Procedimiento-EN-v1.docx',
 772                  'filename' => 'PO-01-Procedimiento-EN-v1.docx',
 773                  'document_type_id' => 7,
 774                  'reviewer_role_id' => null,
 775                  'approver_role_id' => null,
 776                  'meet_type_id' => null,
 777                  'custom_path' => null,
 778                  'date_custom_path' => null,
 779                  'is_certification' => false,
 780                  'can_draft' => false,
 781              ],
 782              #endregion PO
 783  
 784              #region POL
 785              [
 786                  'name' => 'POL-01-Politica-EN-v1',
 787                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/POL_templates/POL-01-Politica-EN-v1.docx',
 788                  'filename' => 'POL-01-Politica-EN-v1.docx',
 789                  'document_type_id' => 8,
 790                  'reviewer_role_id' => null,
 791                  'approver_role_id' => null,
 792                  'meet_type_id' => null,
 793                  'custom_path' => null,
 794                  'date_custom_path' => null,
 795                  'is_certification' => false,
 796                  'can_draft' => true,
 797              ],
 798              #endregion POL
 799  
 800              #region RES
 801              [
 802                  'name' => 'RES-01-ResolucionCertificacion-EN-v1',
 803                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/RES_templates/RES-01-ResolucionCertificacion-EN-v1.docx',
 804                  'filename' => 'RES-01-ResolucionCertificacion-EN-v1.docx',
 805                  'document_type_id' => 9,
 806                  'reviewer_role_id' => $this->role('technical_manager'),
 807                  'approver_role_id' => $this->role('area_manager'),
 808                  'meet_type_id' => null,
 809                  'custom_path' => null,
 810                  'date_custom_path' => null,
 811                  'is_certification' => false,
 812                  'can_draft' => true,
 813              ],
 814              [
 815                  'name' => 'RES-02-ResolucionAnulacion-EN-v1',
 816                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/RES_templates/RES-02-ResolucionAnulacion-EN-v1.docx',
 817                  'filename' => 'RES-02-ResolucionAnulacion-EN-v1.docx',
 818                  'document_type_id' => 9,
 819                  'reviewer_role_id' => null,
 820                  'approver_role_id' => null,
 821                  'meet_type_id' => null,
 822                  'custom_path' => null,
 823                  'date_custom_path' => null,
 824                  'is_certification' => false,
 825                  'can_draft' => true,
 826              ],
 827              #endregion
 828          ];
 829      }
 830  
 831      private function getCustomTemplates()
 832      {
 833          return [
 834              #region ACT
 835              [
 836                  'name' => 'ReunionExpediente-ES-v1',
 837                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/ACT_templates/ReunionExpediente-ES-v1.docx',
 838                  'filename' => 'ReunionExpediente-ES-v1.docx',
 839                  'document_type_id' => 1,
 840                  'reviewer_role_id' => $this->role('quality_manager'),
 841                  'approver_role_id' => $this->role('technical_manager'),
 842                  'meet_type_id' => MeetTypeEnum::dossierMeeting()->value,
 843                  'custom_path' => null,
 844                  'date_custom_path' => null,
 845                  'is_certification' => false,
 846                  'can_draft' => true,
 847                  'class_doc_gen' => 'ACTTemplateDocGen',
 848                  'is_word' => true
 849              ],
 850              [
 851                  'name' => 'ReunionInicio-CC-ES-v1',
 852                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/ACT_templates/ReunionInicio-ES-CC-v1.docx',
 853                  'filename' => 'ReunionInicio-CC-ES-v1.docx',
 854                  'document_type_id' => 1,
 855                  'reviewer_role_id' => $this->role('quality_manager'),
 856                  'approver_role_id' => $this->role('technical_manager'),
 857                  'meet_type_id' => MeetTypeEnum::startMeeting()->value,
 858                  'custom_path' => null,
 859                  'date_custom_path' => null,
 860                  'is_certification' => false,
 861                  'can_draft' => true,
 862                  'class_doc_gen' => 'ACTTemplateDocGen',
 863                  'is_word' => true
 864              ],
 865              [
 866                  'name' => 'ReunionInicio-Lince-ES-v1',
 867                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/ACT_templates/ReunionInicio-ES-Lince-v1.docx',
 868                  'filename' => 'ReunionInicio-Lince-ES-v1.docx',
 869                  'document_type_id' => 1,
 870                  'reviewer_role_id' => $this->role('quality_manager'),
 871                  'approver_role_id' => $this->role('technical_manager'),
 872                  'meet_type_id' => MeetTypeEnum::startMeeting()->value,
 873                  'custom_path' => null,
 874                  'date_custom_path' => null,
 875                  'is_certification' => false,
 876                  'can_draft' => true,
 877                  'class_doc_gen' => 'ACTTemplateDocGen',
 878                  'is_word' => true
 879              ],
 880              [
 881                  'name' => 'ReunionAudienciaEstimatoria-ES-v1',
 882                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/ACT_templates/ReunionAudienciaEstimatoria-ES-v1.docx',
 883                  'filename' => 'ReunionAudienciaEstimatoria-ES-v1.docx',
 884                  'document_type_id' => 1,
 885                  'reviewer_role_id' => $this->role('quality_manager'),
 886                  'approver_role_id' => $this->role('technical_manager'),
 887                  'meet_type_id' => MeetTypeEnum::estimationHearingMeeting()->value,
 888                  'custom_path' => null,
 889                  'date_custom_path' => null,
 890                  'is_certification' => false,
 891                  'can_draft' => true,
 892                  'class_doc_gen' => 'ACTTemplateDocGen',
 893                  'is_word' => true
 894              ],
 895              [
 896                  'name' => 'ReunionAudienciaAnulacion-ES-v1',
 897                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/ACT_templates/ReunionAudienciaAnulacion-ES-v1.docx',
 898                  'filename' => 'ReunionAudienciaAnulacion-ES-v1.docx',
 899                  'document_type_id' => 1,
 900                  'reviewer_role_id' => $this->role('quality_manager'),
 901                  'approver_role_id' => $this->role('technical_manager'),
 902                  'meet_type_id' => MeetTypeEnum::cancellationHearingMeeting()->value,
 903                  'custom_path' => null,
 904                  'date_custom_path' => null,
 905                  'is_certification' => false,
 906                  'can_draft' => true,
 907                  'class_doc_gen' => 'ACTTemplateDocGen',
 908                  'is_word' => true
 909              ],
 910              [
 911                  'name' => 'ReunionInicioAuditoria-ES-v1',
 912                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/ACT_templates/ReunionInicioAuditoria-ES-v1.docx',
 913                  'filename' => 'ReunionInicioAuditoria-ES-v1.docx',
 914                  'document_type_id' => 1,
 915                  'reviewer_role_id' => $this->role('quality_manager'),
 916                  'approver_role_id' => $this->role('technical_manager'),
 917                  'meet_type_id' => MeetTypeEnum::startAuditMeeting()->value,
 918                  'custom_path' => null,
 919                  'date_custom_path' => null,
 920                  'is_certification' => false,
 921                  'can_draft' => true,
 922                  'class_doc_gen' => 'ACTTemplateDocGen',
 923                  'is_word' => true
 924              ],
 925              #endregion ACT
 926  
 927              #region CER
 928              [
 929                  'name' => '20200221_certificado_acreditacion_lab_CC-v1',
 930                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/CER_templates/20200221_certificado_acreditacion_lab_CC-v1.docx',
 931                  'filename' => '20200221_certificado_acreditacion_lab_CC-v1.docx',
 932                  'document_type_id' => 2,
 933                  'reviewer_role_id' => null,
 934                  'approver_role_id' => null,
 935                  'meet_type_id' => null,
 936                  'custom_path' => null,
 937                  'date_custom_path' => null,
 938                  'is_certification' => false,
 939                  'can_draft' => false,
 940                  'class_doc_gen' => 'CERTemplateDocGen',
 941                  'is_word' => true
 942              ],
 943              [
 944                  'name' => '20200221_certificado_CC_con_PP_Dom_Tec-v1',
 945                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/CER_templates/20200221_certificado_CC_con_PP_Dom_Tec-v1.docx',
 946                  'filename' => '20200221_certificado_CC_con_PP_Dom_Tec-v1.docx',
 947                  'document_type_id' => 2,
 948                  'reviewer_role_id' => null,
 949                  'approver_role_id' => null,
 950                  'meet_type_id' => null,
 951                  'custom_path' => null,
 952                  'date_custom_path' => null,
 953                  'is_certification' => false,
 954                  'can_draft' => false,
 955                  'class_doc_gen' => 'CERTemplateDocGen',
 956                  'is_word' => true
 957              ],
 958              [
 959                  'name' => '20200221_certificado_CC_con_PP_hasta_EAL4-v1',
 960                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/CER_templates/20200221_certificado_CC_con_PP_hasta_EAL4-v1.docx',
 961                  'filename' => '20200221_certificado_CC_con_PP_hasta_EAL4-v1.docx',
 962                  'document_type_id' => 2,
 963                  'reviewer_role_id' => null,
 964                  'approver_role_id' => null,
 965                  'meet_type_id' => null,
 966                  'custom_path' => null,
 967                  'date_custom_path' => null,
 968                  'is_certification' => false,
 969                  'can_draft' => false,
 970                  'class_doc_gen' => 'CERTemplateDocGen',
 971                  'is_word' => true
 972              ],
 973              [
 974                  'name' => '20200221_certificado_CC_con_PP_sin_sellos-v1',
 975                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/CER_templates/20200221_certificado_CC_con_PP_sin_sellos-v1.docx',
 976                  'filename' => '20200221_certificado_CC_con_PP_sin_sellos-v1.docx',
 977                  'document_type_id' => 2,
 978                  'reviewer_role_id' => null,
 979                  'approver_role_id' => null,
 980                  'meet_type_id' => null,
 981                  'custom_path' => null,
 982                  'date_custom_path' => null,
 983                  'is_certification' => false,
 984                  'can_draft' => false,
 985                  'class_doc_gen' => 'CERTemplateDocGen',
 986                  'is_word' => true
 987              ],
 988              [
 989                  'name' => '20200221_certificado_CC_con_ST_Dom_Tec-v1',
 990                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/CER_templates/20200221_certificado_CC_con_ST_Dom_Tec-v1.docx',
 991                  'filename' => '20200221_certificado_CC_con_ST_Dom_Tec-v1.docx',
 992                  'document_type_id' => 2,
 993                  'reviewer_role_id' => null,
 994                  'approver_role_id' => null,
 995                  'meet_type_id' => null,
 996                  'custom_path' => null,
 997                  'date_custom_path' => null,
 998                  'is_certification' => false,
 999                  'can_draft' => false,
1000                  'class_doc_gen' => 'CERTemplateDocGen',
1001                  'is_word' => true
1002              ],
1003              [
1004                  'name' => '20200221_certificado_CC_con_ST_hasta_EAL4-v1',
1005                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/CER_templates/20200221_certificado_CC_con_ST_hasta_EAL4-v1.docx',
1006                  'filename' => '20200221_certificado_CC_con_ST_hasta_EAL4-v1.docx',
1007                  'document_type_id' => 2,
1008                  'reviewer_role_id' => null,
1009                  'approver_role_id' => null,
1010                  'meet_type_id' => null,
1011                  'custom_path' => null,
1012                  'date_custom_path' => null,
1013                  'is_certification' => false,
1014                  'can_draft' => false,
1015                  'class_doc_gen' => 'CERTemplateDocGen',
1016                  'is_word' => true
1017              ],
1018              [
1019                  'name' => '20200221_certificado_CC_SITE-v1',
1020                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/CER_templates/20200221_certificado_CC_SITE-v1.docx',
1021                  'filename' => '20200221_certificado_CC_SITE-v1.docx',
1022                  'document_type_id' => 2,
1023                  'reviewer_role_id' => null,
1024                  'approver_role_id' => null,
1025                  'meet_type_id' => null,
1026                  'custom_path' => null,
1027                  'date_custom_path' => null,
1028                  'is_certification' => false,
1029                  'can_draft' => false,
1030                  'class_doc_gen' => 'CERTemplateDocGen',
1031                  'is_word' => true
1032              ],
1033              [
1034                  'name' => '20200221_certificado_CC_ST_sin_sellos-v1',
1035                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/CER_templates/20200221_certificado_CC_ST_sin_sellos-v1.docx',
1036                  'filename' => '20200221_certificado_CC_ST_sin_sellos-v1.docx',
1037                  'document_type_id' => 2,
1038                  'reviewer_role_id' => null,
1039                  'approver_role_id' => null,
1040                  'meet_type_id' => null,
1041                  'custom_path' => null,
1042                  'date_custom_path' => null,
1043                  'is_certification' => false,
1044                  'can_draft' => false,
1045                  'class_doc_gen' => 'CERTemplateDocGen',
1046                  'is_word' => true
1047              ],
1048              [
1049                  'name' => '20200221_certificado_CCRA_conformant-v1',
1050                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/CER_templates/20200221_certificado_CCRA_conformant-v1.docx',
1051                  'filename' => '20200221_certificado_CCRA_conformant-v1.docx',
1052                  'document_type_id' => 2,
1053                  'reviewer_role_id' => null,
1054                  'approver_role_id' => null,
1055                  'meet_type_id' => null,
1056                  'custom_path' => null,
1057                  'date_custom_path' => null,
1058                  'is_certification' => false,
1059                  'can_draft' => false,
1060                  'class_doc_gen' => 'CERTemplateDocGen',
1061                  'is_word' => true
1062              ],
1063              [
1064                  'name' => '20200221_certificado_ITSEC_con_ST-v1',
1065                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/CER_templates/20200221_certificado_ITSEC_con_ST-v1.docx',
1066                  'filename' => '20200221_certificado_ITSEC_con_ST-v1.docx',
1067                  'document_type_id' => 2,
1068                  'reviewer_role_id' => null,
1069                  'approver_role_id' => null,
1070                  'meet_type_id' => null,
1071                  'custom_path' => null,
1072                  'date_custom_path' => null,
1073                  'is_certification' => false,
1074                  'can_draft' => false,
1075                  'class_doc_gen' => 'CERTemplateDocGen',
1076                  'is_word' => true
1077              ],
1078              [
1079                  'name' => '20200221_certificado_para_perfil_proteccion-v1',
1080                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/CER_templates/20200221_certificado_para_perfil_proteccion-v1.docx',
1081                  'filename' => '20200221_certificado_para_perfil_proteccion-v1.docx',
1082                  'document_type_id' => 2,
1083                  'reviewer_role_id' => null,
1084                  'approver_role_id' => null,
1085                  'meet_type_id' => null,
1086                  'custom_path' => null,
1087                  'date_custom_path' => null,
1088                  'is_certification' => false,
1089                  'can_draft' => false,
1090                  'class_doc_gen' => 'CERTemplateDocGen',
1091                  'is_word' => true
1092              ],
1093              [
1094                  'name' => '20200221_certificado_enisa_qr-v1',
1095                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/CER_templates/20200221_certificado_enisa_qr-v1.docx',
1096                  'filename' => '20200221_certificado_enisa_qr-v1.docx',
1097                  'document_type_id' => 2,
1098                  'reviewer_role_id' => null,
1099                  'approver_role_id' => null,
1100                  'meet_type_id' => null,
1101                  'custom_path' => null,
1102                  'date_custom_path' => null,
1103                  'is_certification' => false,
1104                  'can_draft' => false,
1105                  'class_doc_gen' => 'CERTemplateDocGen',
1106                  'is_word' => true
1107              ],
1108              #endregion CER
1109  
1110              #region INF
1111              [
1112                  'name' => 'INF-01-GeneralConExpediente-ES-v1',
1113                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/INF_templates/INF-01-GeneralConExpediente-ES-v1.docx',
1114                  'filename' => 'INF-01-GeneralConExpediente-ES-v1.docx',
1115                  'document_type_id' => 3,
1116                  'reviewer_role_id' => $this->role('quality_manager'),
1117                  'approver_role_id' => $this->role('technical_manager'),
1118                  'meet_type_id' => null,
1119                  'custom_path' => null,
1120                  'date_custom_path' => null,
1121                  'is_certification' => false,
1122                  'can_draft' => true,
1123                  'class_doc_gen' => null,
1124                  'is_word' => true
1125              ],
1126              [
1127                  'name' => 'INF-02-GeneralSinExpediente-ES-v1',
1128                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/INF_templates/INF-02-GeneralSinExpediente-ES-v1.docx',
1129                  'filename' => 'INF-02-GeneralSinExpediente-ES-v1.docx',
1130                  'document_type_id' => 3,
1131                  'reviewer_role_id' => $this->role('quality_manager'),
1132                  'approver_role_id' => $this->role('technical_manager'),
1133                  'meet_type_id' => null,
1134                  'custom_path' => null,
1135                  'date_custom_path' => null,
1136                  'is_certification' => false,
1137                  'can_draft' => true,
1138                  'class_doc_gen' => null,
1139                  'is_word' => true
1140              ],
1141              [
1142                  'name' => 'INF-03-ValidacionParcial-EN-v1',
1143                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/INF_templates/INF-03-ValidacionParcial-ES-v1.docx',
1144                  'filename' => 'INF-03-ValidacionParcial-EN-v1.docx',
1145                  'document_type_id' => 3,
1146                  'reviewer_role_id' => $this->role('quality_manager'),
1147                  'approver_role_id' => $this->role('technical_manager'),
1148                  'meet_type_id' => null,
1149                  'custom_path' => null,
1150                  'date_custom_path' => null,
1151                  'is_certification' => false,
1152                  'can_draft' => true,
1153                  'class_doc_gen' => 'INFTemplateDocGen',
1154                  'is_word' => true
1155              ],
1156              [
1157                  'name' => 'INF-04-ValidacionETR-EN-v1',
1158                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/INF_templates/INF-04-ValidacionETR-ES-v1.docx',
1159                  'filename' => 'INF-04-ValidacionETR-EN-v1.docx',
1160                  'document_type_id' => 3,
1161                  'reviewer_role_id' => $this->role('quality_manager'),
1162                  'approver_role_id' => $this->role('technical_manager'),
1163                  'meet_type_id' => null,
1164                  'custom_path' => null,
1165                  'date_custom_path' => null,
1166                  'is_certification' => false,
1167                  'can_draft' => true,
1168                  'class_doc_gen' => 'INFTemplateDocGen',
1169                  'is_word' => true
1170              ],
1171              [
1172                  'name' => 'INF-05-InformeValidacionSolicitudCertificacion-EN-v1',
1173                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/INF_templates/INF-05-InformeValidacionSolicitudCertificacion-EN-v1.docx',
1174                  'filename' => 'INF-05-InformeValidacionSolicitudCertificacion-EN-v1.docx',
1175                  'document_type_id' => 3,
1176                  'reviewer_role_id' => $this->role('quality_manager'),
1177                  'approver_role_id' => $this->role('technical_manager'),
1178                  'meet_type_id' => null,
1179                  'custom_path' => null,
1180                  'date_custom_path' => null,
1181                  'is_certification' => false,
1182                  'can_draft' => true,
1183                  'class_doc_gen' => 'INFTemplateDocGen',
1184                  'is_word' => true
1185              ],
1186              [
1187                  'name' => 'INF-06-RevisionSolicitudAcreditacion-ES-v1',
1188                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/INF_templates/INF-06-RevisionSolicitudAcreditacion-ES-v1.docx',
1189                  'filename' => 'INF-06-RevisionSolicitudAcreditacion-ES-v1.docx',
1190                  'document_type_id' => 3,
1191                  'reviewer_role_id' => $this->role('quality_manager'),
1192                  'approver_role_id' => $this->role('technical_manager'),
1193                  'meet_type_id' => null,
1194                  'custom_path' => null,
1195                  'date_custom_path' => null,
1196                  'is_certification' => false,
1197                  'can_draft' => true,
1198                  'class_doc_gen' => 'INFTemplateDocGen',
1199                  'is_word' => true
1200              ],
1201              [
1202                  'name' => 'INF-07-Certificacion-ES-v1',
1203                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/INF_templates/INF-07-Certificacion-ES-v1.docx',
1204                  'filename' => 'INF-07-Certificacion-ES-v1.docx',
1205                  'document_type_id' => 3,
1206                  'reviewer_role_id' => $this->role('quality_manager'),
1207                  'approver_role_id' => $this->role('technical_manager'),
1208                  'meet_type_id' => null,
1209                  'custom_path' => null,
1210                  'date_custom_path' => null,
1211                  'is_certification' => true,
1212                  'can_draft' => true,
1213                  'class_doc_gen' => 'INFTemplateDocGen',
1214                  'is_word' => true
1215              ],
1216              [
1217                  'name' => 'INF-08-Certificacion-EN-v1',
1218                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/INF_templates/INF-08-Certificacion-EN-v1.docx',
1219                  'filename' => 'INF-08-Certificacion-EN-v1.docx',
1220                  'document_type_id' => 3,
1221                  'reviewer_role_id' => $this->role('quality_manager'),
1222                  'approver_role_id' => $this->role('technical_manager'),
1223                  'meet_type_id' => null,
1224                  'custom_path' => null,
1225                  'date_custom_path' => null,
1226                  'is_certification' => true,
1227                  'can_draft' => true,
1228                  'class_doc_gen' => 'INFTemplateDocGen',
1229                  'is_word' => true
1230              ],
1231              [
1232                  'name' => 'INF-09-Renovacion-EN-v1',
1233                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/INF_templates/INF-09-Renovacion-EN-v1.docx',
1234                  'filename' => 'INF-09-Renovacion-EN-v1.docx',
1235                  'document_type_id' => 3,
1236                  'reviewer_role_id' => $this->role('quality_manager'),
1237                  'approver_role_id' => $this->role('technical_manager'),
1238                  'meet_type_id' => null,
1239                  'custom_path' => null,
1240                  'date_custom_path' => null,
1241                  'is_certification' => true,
1242                  'can_draft' => true,
1243                  'class_doc_gen' => 'INFTemplateDocGen',
1244                  'is_word' => true
1245              ],
1246              [
1247                  'name' => 'INF-10-Mantenimiento-ES-v1',
1248                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/INF_templates/INF-10-Mantenimiento-ES-v1.docx',
1249                  'filename' => 'INF-10-Mantenimiento-ES-v1.docx',
1250                  'document_type_id' => 3,
1251                  'reviewer_role_id' => $this->role('quality_manager'),
1252                  'approver_role_id' => $this->role('technical_manager'),
1253                  'meet_type_id' => null,
1254                  'custom_path' => null,
1255                  'date_custom_path' => null,
1256                  'is_certification' => true,
1257                  'can_draft' => true,
1258                  'class_doc_gen' => 'INFTemplateDocGen',
1259                  'is_word' => true
1260              ],
1261              /*
1262              NO SON USADOS
1263              [
1264                  'name' => 'INF-11-Vulnerabilidades-EN-v1',
1265                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/INF_templates/INF-11-Vulnerabilidades-EN-v1.docx',
1266                  'filename' => 'INF-11-Vulnerabilidades-EN-v1.docx',
1267                  'document_type_id' => 3,
1268                  'reviewer_role_id' => $this->role('quality_manager'),
1269                  'approver_role_id' => $this->role('technical_manager'),
1270                  'meet_type_id' => null,
1271                  'custom_path' => null,
1272                  'date_custom_path' => null,
1273                  'is_certification' => false,
1274                  'can_draft' => true,
1275                  'class_doc_gen' => 'INFTemplateDocGen'
1276              ],
1277              [
1278                  'name' => 'INF-12-ValidacionJSON-EN-v1',
1279                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/INF_templates/INF-12-ValidacionJSON-EN-v1.docx',
1280                  'filename' => 'INF-12-ValidacionJSON-EN-v1.docx',
1281                  'document_type_id' => 3,
1282                  'reviewer_role_id' => $this->role('quality_manager'),
1283                  'approver_role_id' => $this->role('technical_manager'),
1284                  'meet_type_id' => null,
1285                  'custom_path' => null,
1286                  'date_custom_path' => null,
1287                  'is_certification' => false,
1288                  'can_draft' => true,
1289                  'class_doc_gen' => 'INFTemplateDocGen',
1290                  'is_word' => true
1291              ], */
1292              [
1293                  'name' => 'INF-18-Certificacion-ES-LINCE-v1',
1294                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/INF_templates/INF-18-Certificacion-ES-LINCE-v1.docx',
1295                  'filename' => 'INF-18-Certificacion-ES-LINCE-v1.docx',
1296                  'document_type_id' => 3,
1297                  'reviewer_role_id' => $this->role('quality_manager'),
1298                  'approver_role_id' => $this->role('technical_manager'),
1299                  'meet_type_id' => null,
1300                  'custom_path' => null,
1301                  'date_custom_path' => null,
1302                  'is_certification' => true,
1303                  'can_draft' => true,
1304                  'class_doc_gen' => 'INFTemplateDocGen',
1305                  'is_word' => true
1306              ],
1307              #endregion INF
1308  
1309              #region INT
1310              [
1311                  'name' => 'INT-01-Interpretacion-EN-v1',
1312                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/INT_templates/INT-01-Interpretacion-ES-v1.docx',
1313                  'filename' => 'INT-01-Interpretacion-EN-v1.docx',
1314                  'document_type_id' => 4,
1315                  'reviewer_role_id' => null,
1316                  'approver_role_id' => null,
1317                  'meet_type_id' => null,
1318                  'custom_path' => null,
1319                  'date_custom_path' => null,
1320                  'is_certification' => false,
1321                  'can_draft' => true,
1322                  'class_doc_gen' => null,
1323                  'is_word' => true
1324              ],
1325              #endregion INT
1326  
1327              #region MAN
1328              [
1329                  'name' => 'MAN-01-Manual-EN-v1',
1330                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/MAN_templates/MAN-01-Manual-ES-v1.docx',
1331                  'filename' => 'MAN-01-Manual-EN-v1.docx',
1332                  'document_type_id' => 5,
1333                  'reviewer_role_id' => null,
1334                  'approver_role_id' => null,
1335                  'meet_type_id' => null,
1336                  'custom_path' => null,
1337                  'date_custom_path' => null,
1338                  'is_certification' => false,
1339                  'can_draft' => false,
1340                  'class_doc_gen' => null,
1341                  'is_word' => true
1342              ],
1343              #endregion MAN
1344  
1345              #region NOT
1346              [
1347                  'name' => 'NOT-01-InicioCertificacion-ES-v1',
1348                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/NOT_templates/NOT-01-InicioCertificacion-ES-v1.docx',
1349                  'filename' => 'NOT-01-InicioCertificacion-ES-v1.docx',
1350                  'document_type_id' => 6,
1351                  'reviewer_role_id' => $this->role('quality_manager'),
1352                  'approver_role_id' => $this->role('technical_manager'),
1353                  'meet_type_id' => null,
1354                  'custom_path' => null,
1355                  'date_custom_path' => null,
1356                  'is_certification' => false,
1357                  'can_draft' => true,
1358                  'class_doc_gen' => 'NOTTemplateDocGen',
1359                  'is_word' => true
1360              ],
1361              [
1362                  'name' => 'NOT-02-InicioAcreditacion-ES-v1',
1363                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/NOT_templates/NOT-02-InicioAcreditacion-ES-v1.docx',
1364                  'filename' => 'NOT-02-InicioAcreditacion-ES-v1.docx',
1365                  'document_type_id' => 6,
1366                  'reviewer_role_id' => $this->role('quality_manager'),
1367                  'approver_role_id' => $this->role('technical_manager'),
1368                  'meet_type_id' => null,
1369                  'custom_path' => null,
1370                  'date_custom_path' => null,
1371                  'is_certification' => false,
1372                  'can_draft' => true,
1373                  'class_doc_gen' => 'NOTTemplateDocGen',
1374                  'is_word' => true
1375              ],
1376              [
1377                  'name' => 'NOT-03-SubsanacionSolicitudCertificacion-ES-v1',
1378                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/NOT_templates/NOT-03-SubsanacionSolicitudCertificacion-ES-v1.docx',
1379                  'filename' => 'NOT-03-SubsanacionSolicitudCertificacion-ES-v1.docx',
1380                  'document_type_id' => 6,
1381                  'reviewer_role_id' => $this->role('quality_manager'),
1382                  'approver_role_id' => $this->role('technical_manager'),
1383                  'meet_type_id' => null,
1384                  'custom_path' => null,
1385                  'date_custom_path' => null,
1386                  'is_certification' => false,
1387                  'can_draft' => true,
1388                  'class_doc_gen' => 'NOTTemplateDocGen',
1389                  'is_word' => true
1390              ],
1391              [
1392                  'name' => 'NOT-04-SubsanacionSolicitudAcreditacion-ES-v1',
1393                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/NOT_templates/NOT-04-SubsanacionSolicitudAcreditacion-ES-v1.docx',
1394                  'filename' => 'NOT-04-SubsanacionSolicitudAcreditacion-ES-v1.docx',
1395                  'document_type_id' => 6,
1396                  'reviewer_role_id' => $this->role('quality_manager'),
1397                  'approver_role_id' => $this->role('technical_manager'),
1398                  'meet_type_id' => null,
1399                  'custom_path' => null,
1400                  'date_custom_path' => null,
1401                  'is_certification' => false,
1402                  'can_draft' => true,
1403                  'class_doc_gen' => 'NOTTemplateDocGen',
1404                  'is_word' => true
1405              ],
1406              [
1407                  'name' => 'NOT-05-CambioPersonalCertificador-ES-v1',
1408                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/NOT_templates/NOT-05-CambioPersonalCertificador-ES-v1.docx',
1409                  'filename' => 'NOT-05-CambioPersonalCertificador-ES-v1.docx',
1410                  'document_type_id' => 6,
1411                  'reviewer_role_id' => $this->role('quality_manager'),
1412                  'approver_role_id' => $this->role('technical_manager'),
1413                  'meet_type_id' => null,
1414                  'custom_path' => null,
1415                  'date_custom_path' => null,
1416                  'is_certification' => false,
1417                  'can_draft' => true,
1418                  'class_doc_gen' => 'NOTTemplateDocGen',
1419                  'is_word' => true
1420              ],
1421              [
1422                  'name' => 'NOT-06-DesistimientoCertificacion-ES-v1',
1423                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/NOT_templates/NOT-06-DesistimientoCertificacion-ES-v1.docx',
1424                  'filename' => 'NOT-06-DesistimientoCertificacion-ES-v1.docx',
1425                  'document_type_id' => 6,
1426                  'reviewer_role_id' => $this->role('quality_manager'),
1427                  'approver_role_id' => $this->role('technical_manager'),
1428                  'meet_type_id' => null,
1429                  'custom_path' => null,
1430                  'date_custom_path' => null,
1431                  'is_certification' => false,
1432                  'can_draft' => true,
1433                  'class_doc_gen' => 'NOTTemplateDocGen',
1434                  'is_word' => true
1435              ],
1436              [
1437                  'name' => 'NOT-07-InicioRevisionVigencia-ES-v1',
1438                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/NOT_templates/NOT-07-InicioRevisionVigencia-ES-v1.docx',
1439                  'filename' => 'NOT-07-InicioRevisionVigencia-ES-v1.docx',
1440                  'document_type_id' => 6,
1441                  'reviewer_role_id' => $this->role('quality_manager'),
1442                  'approver_role_id' => $this->role('technical_manager'),
1443                  'meet_type_id' => null,
1444                  'custom_path' => null,
1445                  'date_custom_path' => null,
1446                  'is_certification' => false,
1447                  'can_draft' => true,
1448                  'class_doc_gen' => 'NOTTemplateDocGen',
1449                  'is_word' => true
1450              ],
1451              [
1452                  'name' => 'NOT-08-FinRevisionVigencia-ES-v1',
1453                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/NOT_templates/NOT-08-FinRevisionVigencia-ES-v1.docx',
1454                  'filename' => 'NOT-08-FinRevisionVigencia-ES-v1.docx',
1455                  'document_type_id' => 6,
1456                  'reviewer_role_id' => $this->role('quality_manager'),
1457                  'approver_role_id' => $this->role('technical_manager'),
1458                  'meet_type_id' => null,
1459                  'custom_path' => null,
1460                  'date_custom_path' => null,
1461                  'is_certification' => false,
1462                  'can_draft' => true,
1463                  'class_doc_gen' => 'NOTTemplateDocGen',
1464                  'is_word' => true
1465              ],
1466              [
1467                  'name' => 'NOT-09-InicioCertificacion-EN-v1',
1468                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/NOT_templates/NOT-09-InicioCertificacion-EN-v1.docx',
1469                  'filename' => 'NOT-09-InicioCertificacion-EN-v1.docx',
1470                  'document_type_id' => 6,
1471                  'reviewer_role_id' => $this->role('quality_manager'),
1472                  'approver_role_id' => $this->role('technical_manager'),
1473                  'meet_type_id' => null,
1474                  'custom_path' => null,
1475                  'date_custom_path' => null,
1476                  'is_certification' => false,
1477                  'can_draft' => true,
1478                  'class_doc_gen' => 'NOTTemplateDocGen',
1479                  'is_word' => true
1480              ],
1481              [
1482                  'name' => 'NOT-10-AcreditacionInicioAuditoria-ES-v1',
1483                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/NOT_templates/NOT-10-AcreditacionInicioAuditoria-ES-v1.docx',
1484                  'filename' => 'NOT-10-AcreditacionInicioAuditoria-ES-v1.docx',
1485                  'document_type_id' => 6,
1486                  'reviewer_role_id' => $this->role('quality_manager'),
1487                  'approver_role_id' => $this->role('technical_manager'),
1488                  'meet_type_id' => null,
1489                  'custom_path' => null,
1490                  'date_custom_path' => null,
1491                  'is_certification' => false,
1492                  'can_draft' => true,
1493                  'class_doc_gen' => 'NOTTemplateDocGen',
1494                  'is_word' => true
1495              ],
1496              [
1497                  'name' => 'NOT-11-SubsanacionSolicitudCertificacion-EN-v1',
1498                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/NOT_templates/NOT-11-SubsanacionSolicitudCertificacion-EN-v1.docx',
1499                  'filename' => 'NOT-11-SubsanacionSolicitudCertificacion-EN-v1.docx',
1500                  'document_type_id' => 6,
1501                  'reviewer_role_id' => $this->role('quality_manager'),
1502                  'approver_role_id' => $this->role('technical_manager'),
1503                  'meet_type_id' => null,
1504                  'custom_path' => null,
1505                  'date_custom_path' => null,
1506                  'is_certification' => false,
1507                  'can_draft' => true,
1508                  'class_doc_gen' => 'NOTTemplateDocGen',
1509                  'is_word' => true
1510              ],
1511              [
1512                  'name' => 'NOT-12-DesistimientoCertificacion-EN-v1',
1513                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/NOT_templates/NOT-12-DesistimientoCertificacion-EN-v1.docx',
1514                  'filename' => 'NOT-12-DesistimientoCertificacion-EN-v1.docx',
1515                  'document_type_id' => 6,
1516                  'reviewer_role_id' => $this->role('quality_manager'),
1517                  'approver_role_id' => $this->role('technical_manager'),
1518                  'meet_type_id' => null,
1519                  'custom_path' => null,
1520                  'date_custom_path' => null,
1521                  'is_certification' => false,
1522                  'can_draft' => true,
1523                  'class_doc_gen' => 'NOTTemplateDocGen',
1524                  'is_word' => true
1525              ],
1526              [
1527                  'name' => 'NOT-13-InicioRevisionVigenciaProducto-ES-v1',
1528                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/NOT_templates/NOT-13-InicioRevisionVigenciaProducto-ES-v1.docx',
1529                  'filename' => 'NOT-13-InicioRevisionVigenciaProducto-ES-v1.docx',
1530                  'document_type_id' => 6,
1531                  'reviewer_role_id' => $this->role('quality_manager'),
1532                  'approver_role_id' => $this->role('technical_manager'),
1533                  'meet_type_id' => null,
1534                  'custom_path' => null,
1535                  'date_custom_path' => null,
1536                  'is_certification' => false,
1537                  'can_draft' => true,
1538                  'class_doc_gen' => 'NOTTemplateDocGen',
1539                  'is_word' => true
1540              ],
1541              [
1542                  'name' => 'NOT-14-RevisionVigenciaInicioProducto-EN-v1',
1543                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/NOT_templates/NOT-14-RevisionVigenciaInicioProducto-EN-v1.docx',
1544                  'filename' => 'NOT-14-RevisionVigenciaInicioProducto-EN-v1.docx',
1545                  'document_type_id' => 6,
1546                  'reviewer_role_id' => $this->role('quality_manager'),
1547                  'approver_role_id' => $this->role('technical_manager'),
1548                  'meet_type_id' => null,
1549                  'custom_path' => null,
1550                  'date_custom_path' => null,
1551                  'is_certification' => false,
1552                  'can_draft' => true,
1553                  'class_doc_gen' => 'NOTTemplateDocGen',
1554                  'is_word' => true
1555              ],
1556              [
1557                  'name' => 'NOT-15-InicioRevisionVigenciaSite-ES-v1',
1558                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/NOT_templates/NOT-15-InicioRevisionVigenciaSite-ES-v1.docx',
1559                  'filename' => 'NOT-15-InicioRevisionVigenciaSite-ES-v1.docx',
1560                  'document_type_id' => 6,
1561                  'reviewer_role_id' => $this->role('quality_manager'),
1562                  'approver_role_id' => $this->role('technical_manager'),
1563                  'meet_type_id' => null,
1564                  'custom_path' => null,
1565                  'date_custom_path' => null,
1566                  'is_certification' => false,
1567                  'can_draft' => true,
1568                  'class_doc_gen' => 'NOTTemplateDocGen',
1569                  'is_word' => true
1570              ],
1571              [
1572                  'name' => 'NOT-16-InicioRevisionVigenciaSite-EN-v1',
1573                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/NOT_templates/NOT-16-InicioRevisionVigenciaSite-EN-v1.docx',
1574                  'filename' => 'NOT-16-InicioRevisionVigenciaSite-EN-v1.docx',
1575                  'document_type_id' => 6,
1576                  'reviewer_role_id' => $this->role('quality_manager'),
1577                  'approver_role_id' => $this->role('technical_manager'),
1578                  'meet_type_id' => null,
1579                  'custom_path' => null,
1580                  'date_custom_path' => null,
1581                  'is_certification' => false,
1582                  'can_draft' => true,
1583                  'class_doc_gen' => 'NOTTemplateDocGen',
1584                  'is_word' => true
1585              ],
1586              [
1587                  'name' => 'NOT-17-CambioPersonalCertificador-EN-v1',
1588                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/NOT_templates/NOT-17-CambioPersonalCertificador-EN-v1.docx',
1589                  'filename' => 'NOT-17-CambioPersonalCertificador-EN-v1.docx',
1590                  'document_type_id' => 6,
1591                  'reviewer_role_id' => $this->role('quality_manager'),
1592                  'approver_role_id' => $this->role('technical_manager'),
1593                  'meet_type_id' => null,
1594                  'custom_path' => null,
1595                  'date_custom_path' => null,
1596                  'is_certification' => false,
1597                  'can_draft' => true,
1598                  'class_doc_gen' => 'NOTTemplateDocGen',
1599                  'is_word' => true
1600              ],
1601              [
1602                  'name' => 'NOT-18-SolicitudETR-ES-v1',
1603                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/NOT_templates/NOT-18-SolicitudETR-ES-v1.docx',
1604                  'filename' => 'NOT-18-SolicitudETR-ES-v1.docx',
1605                  'document_type_id' => 6,
1606                  'reviewer_role_id' => $this->role('quality_manager'),
1607                  'approver_role_id' => $this->role('technical_manager'),
1608                  'meet_type_id' => null,
1609                  'custom_path' => null,
1610                  'date_custom_path' => null,
1611                  'is_certification' => false,
1612                  'can_draft' => true,
1613                  'class_doc_gen' => 'NOTTemplateDocGen',
1614                  'is_word' => true
1615              ],
1616              [
1617                  'name' => 'NOT-19-AcreditaciónInicioProceso-ES-v1',
1618                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/NOT_templates/NOT-19-AcreditaciónInicioProceso-ES-v1.docx',
1619                  'filename' => 'NOT-19-AcreditaciónInicioProceso-ES-v1.docx',
1620                  'document_type_id' => 6,
1621                  'reviewer_role_id' => $this->role('quality_manager'),
1622                  'approver_role_id' => $this->role('technical_manager'),
1623                  'meet_type_id' => null,
1624                  'custom_path' => null,
1625                  'date_custom_path' => null,
1626                  'is_certification' => false,
1627                  'can_draft' => true,
1628                  'class_doc_gen' => 'NOTTemplateDocGen',
1629                  'is_word' => true
1630              ],
1631              [
1632                  'name' => 'NOT-20-RevisionVigenciaFinProducto-EN-v1',
1633                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/NOT_templates/NOT-20-RevisionVigenciaFinProducto-EN-v1.docx',
1634                  'filename' => 'NOT-20-RevisionVigenciaFinProducto-EN-v1.docx',
1635                  'document_type_id' => 6,
1636                  'reviewer_role_id' => $this->role('quality_manager'),
1637                  'approver_role_id' => $this->role('technical_manager'),
1638                  'meet_type_id' => null,
1639                  'custom_path' => null,
1640                  'date_custom_path' => null,
1641                  'is_certification' => false,
1642                  'can_draft' => true,
1643                  'class_doc_gen' => 'NOTTemplateDocGen',
1644                  'is_word' => true
1645              ],
1646              #endregion NOT
1647  
1648              #region PO
1649              [
1650                  'name' => 'PO-01-Procedimiento-EN-v1',
1651                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/PO_templates/PO-01-Procedimiento-ES-v1.docx',
1652                  'filename' => 'PO-01-Procedimiento-EN-v1.docx',
1653                  'document_type_id' => 7,
1654                  'reviewer_role_id' => null,
1655                  'approver_role_id' => null,
1656                  'meet_type_id' => null,
1657                  'custom_path' => null,
1658                  'date_custom_path' => null,
1659                  'is_certification' => false,
1660                  'can_draft' => true,
1661                  'class_doc_gen' => null,
1662                  'is_word' => true
1663              ],
1664              #endregion PO
1665  
1666              #region POL
1667              [
1668                  'name' => 'POL-01-Politica-EN-v1',
1669                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/POL_templates/POL-01-Politica-ES-v1.docx',
1670                  'filename' => 'POL-01-Politica-EN-v1.docx',
1671                  'document_type_id' => 8,
1672                  'reviewer_role_id' => null,
1673                  'approver_role_id' => null,
1674                  'meet_type_id' => null,
1675                  'custom_path' => null,
1676                  'date_custom_path' => null,
1677                  'is_certification' => false,
1678                  'can_draft' => false,
1679                  'class_doc_gen' => null,
1680                  'is_word' => true
1681              ],
1682              #endregion POL
1683  
1684              #region RES
1685              [
1686                  'name' => 'RES-01-ResolucionCertificacion-EN-v1',
1687                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/RES_templates/RES-01-ResolucionCertificacion-ES-v1.docx',
1688                  'filename' => 'RES-01-ResolucionCertificacion-EN-v1.docx',
1689                  'document_type_id' => 9,
1690                  'reviewer_role_id' => $this->role('technical_manager'),
1691                  'approver_role_id' => $this->role('area_manager'),
1692                  'meet_type_id' => null,
1693                  'custom_path' => null,
1694                  'date_custom_path' => null,
1695                  'is_certification' => false,
1696                  'can_draft' => true,
1697                  'class_doc_gen' => 'RESTemplateDocGen',
1698                  'is_word' => true
1699              ],
1700              [
1701                  'name' => 'RES-02-ResolucionAnulacion-EN-v1',
1702                  'path' => 'templates/' . config('template.TEMPLATE_ROUTE') . '/RES_templates/RES-02-ResolucionAnulacion-ES-v1.docx',
1703                  'filename' => 'RES-02-ResolucionAnulacion-EN-v1.docx',
1704                  'document_type_id' => 9,
1705                  'reviewer_role_id' => null,
1706                  'approver_role_id' => null,
1707                  'meet_type_id' => null,
1708                  'custom_path' => null,
1709                  'date_custom_path' => null,
1710                  'is_certification' => false,
1711                  'can_draft' => true,
1712                  'class_doc_gen' => 'RESTemplateDocGen',
1713                  'is_word' => true
1714              ],
1715              #endregion
1716          ];
1717      }
1718  
1719      private function role(string $name): int
1720      {
1721          return $this->roles->where('name', $name)->first()->id;
1722      }
1723  }