All persons convicted of crime and confined in a facility under the laws of the state except such as are precluded by the terms of the judgment and sentence under which they may be imprisoned shall perform labor under such rules and regulations as have been or may hereafter be prescribed by the department.
NMS § 33-8-4