App a 'crystal ball' into gangs: NSW cops