# Rädlinger distribution package

## Assets

Gulp runs in this configuration with npm 10. Use `nvm use 10` before `gulp javascript` or `gulp scss` 


## Certbot certificates 

```bash
sudo certbot run --apache -d www.raedlinger.de -d raedlinger.de -d www.raedlinger-energy.de -d raedlinger-energy.de -d 
rw-energy.com -d rw-energy.de -d www.rw-energy.com -d www.rw-energy.de -d raedlinger-energy.com -d www.raedlinger-energy.com -d matomo.raedlinger.de -d raedlinger.medienreaktor-kunden.de
```


## ZoHo Recruit Integration

Integrated Zoho Recruit

First you need to generate a token with: 

```
typo3cms career:generatezohotoken code client_id client_secret redirect_uri
```

after you successfully generated a token a database entry will appear in the table

tx_career_api_token_collection

Once this is generated you just always need to refresh the generated Token by the command/Schedule below

next up you need to create a scheduler task that runs a console command every 50 minutes. (Tokens are only valid for 3600)
In scheduler select 
```
career:refreshzohotoken
```

This should now work fine with the ZoHo Api and refresh the token by itself.


Rädlinger ZOHO Dev Console

https://api-console.zoho.eu/client/1000.7GW8VOSVAB1JKJ9NPK4HC3F5XKY5SP

Jobs Backend

https://recruit.zoho.eu/recruit/org20086973517/EntityInfo.do?module=JobOpenings&id=54460000000710095&submodule=JobOpenings


INFO:
- The Api sends all jobs including ones that are not published in Jobs Backend
- In the Typo3 Backend there are JobSources as a Model. These need the same name a Job is assigned to in the ZoHo Backend
- The JoBSources do have a company key that needs to be the identifier for the Job Apply Page found on in the Jobs Backend (Apply page is www.xxxxx.zohorecruit.de/MAB_DE/xxxx so the id of this company needs to be MAB_DE) This is for Linkbuilding purposes to the right Apply form.
