The accord was reached Thursday between the protesters and oil companies after four days of talks .