Phase diagram of the resistive state of a narrow superconducting channel in the voltage-driven regime