lib/ngapp/service.helper.js
function genService(methods) {
        var service = {};

        for (var methodName in methods) {
            if (methods.hasOwnProperty(methodName)) {
                service[methodName] = genServiceMethod(methods[methodName]);
            }
        }

        return service;
    }
function genService(methods) {
        var service = {};

        for (var methodName in methods) {
            if (methods.hasOwnProperty(methodName)) {
                service[methodName] = genServiceMethod(methods[methodName]);
            }
        }

        return service;
    }
function genService ( methods ) { var service = { } ; for ( var methodName in methods ) { if ( methods . hasOwnProperty ( methodName ) ) { service [ methodName ] = genServiceMethod ( methods [ methodName ] ) ; } } return service ; }
Generate a service based on a set of methods
@param methods
Generate a service based on a set of methods