It was used to catch shoplifters but has raised concerns about mass surveillance in stores.