File: //opt/saltstack/salt/lib/python3.10/site-packages/salt/modules/__pycache__/bamboohr.cpython-310.pyc
o
�N�gN � @ s� d Z ddlZddlm mZ ddlZddlZe� e
�Zdd� Zdd� Z
ddd �Zdd
d�Zddd
�Zddd�Zdd� Zddd�ZdS )z�
Support for BambooHR
.. versionadded:: 2015.8.0
Requires a ``subdomain`` and an ``apikey`` in ``/etc/salt/minion``:
.. code-block:: yaml
bamboohr:
apikey: 012345678901234567890
subdomain: mycompany
� Nc C s t � rdS dS )z5
Only load the module if apache is installed
T)FzKThe API key was not specified. Please specify it using the "apikey" config.)�_apikey� r r �I/opt/saltstack/salt/lib/python3.10/site-packages/salt/modules/bamboohr.py�__virtual__ s r c C s t �di ��dd�S )z
Get the API key
�bamboohrZapikeyN)�__opts__�getr r r r r $ s r �idc
C s� i }t ddd�\}}t�|�}|D ]/}|jdkrq|D ]$}tt|�� ��}d|i}|D ]
} | j|tt| �� ��<