public function getPreviousPayloadAuthTokensByContactClient($contactClientId, $operationId = null, $test = false)
    {
        $result = [];
        $q      = $this->getEntityManager()->getConnection()->createQueryBuilder();
        $q->select('a.operation, a.type, a.field, a.val')
            ->from(MAUTIC_TABLE_PREFIX.'contactclient_auth', 'a')
            ->where(
                $q->expr()->eq('a.contactclient_id', (int) $contactClientId),
                $q->expr()->eq('a.test', (int) $test)
            );

        if ($operationId) {
            $q->andWhere(
                $q->expr()->eq('a.operation', (int) $operationId)
            );
        }

        foreach ($q->execute()->fetchAll() as $row) {
            $token          = 'payload.operations.'.$row['operation'].'.response.'.$row['type'].'.'.$row['field'];
            $result[$token] = $row['val'];
        }

        return $result;
    }