Representation theory for line operators