{"size": 579, "ext": "js", "max_stars_repo_path": "app/modules/forgotpassword/forgotpassword.service.js", "max_stars_repo_name": "donny08/angular-gulp-browsersync-seed", "max_stars_repo_stars_event_min_datetime": "2017-01-12T11:04:55.000Z", "max_stars_repo_stars_event_max_datetime": "2017-01-18T09:26:53.000Z", "max_issues_repo_path": "app/modules/forgotpassword/forgotpassword.service.js", "max_issues_repo_name": "donny08/angular-gulp-browsersync-seed", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "app/modules/forgotpassword/forgotpassword.service.js", "max_forks_repo_name": "donny08/angular-gulp-browsersync-seed", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 3, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 25.1739130435, "max_line_length": 103, "alphanum_fraction": 0.6044905009}
"use strict";

module.exports = function($http, $cookies, $rootScope, $timeout,GENERAL_CONFIG) {

    var service = {};

    service.verification = verification;

    return service;


    function verification(email, callback) {
        var payload = { "email": email };

        $http.post(GENERAL_CONFIG.BASE_URL + 'auth/forgot', payload).then(function handleSuccess(res) {
            callback({ success: true, resp: res });
        }, function handleError(error) {
            console.log(error)
            callback({ success: false, messObj: error });
        });
    }
}
