ng-min doesn't currently annotate functions in the resolve property so I have to do it myself