import { applicantCreateRequest } from '../../api/helper';
import Config from '../../../config/appConstants';


export function callOpenworkItem(item_id) {
    const params = {
        id : item_id
    }
    applicantCreateRequest('PUT', Config.OPENWORKITEM, 1, {}, params).then(
        (response) => {
        
        },(error) => {
            console.log("OPENWORKITEM::ERROR == ",error);            
        }
    );
}

export function callCloseworkItem(item_id) {
    const params = {
        id : item_id
    }

    applicantCreateRequest('PUT', Config.PUT_CLOSEWORKITEM, 1, {}, params).then(
        (response) => {
        
        },(error) => {
            console.log("PUT_CLOSEWORKITEM::ERROR == ",error);            
        }
    );
}