DataStorage.js

angular.module('homepage').
factory('DataStorage', function () {
    var InputTemplate = {
        "profile": {
            "title": "Profile Summary",
            "fullname": "",
            "designation": "",
            "dateOfBirth": "",
            "experienceTotal": "",
            "experienceRelevant": "",
            "gender": ""
        },
        "companies": {
            "title": "Work Experience",
            "list": [
                {
                    "companyName": "",
                    "jobTitle": "",
                    "startDate": "",
                    "endDate": "",
                    "projects": [
                        
                    ]
                }
            ]
        },
        "educations": {
            "title": "Education Summary",
            "list": [
                {
                    "educationTitle": "",
                    "studiedFrom": "",
                    "startDate": "",
                    "endDate": "",
                    "specialization": "",
                    "score": ""
                }
            ]
        },
        "skills": {
            "title": "Skills List",
            "list": [
                {
                    "skillName": "",
                    "totalExp": "",
                    "versionNo": "",
                    "studiedFrom": "",
                    "selfRating": ""
                }
            ]
        },
        "experiences": {
            "title": "Professional Experience",
            "list": [
                { "description": ""}
            ]
        },
        "activities": {
            "title": "Accomplishments",
            "list":  [
                { "description": "" }
            ]
        },
        "objective": {
            "title": "Career Objective",
            "description": ""
        },
        "detail": {
            "title": "More Details",
            "languages": {
                "spoken": "",
                "readwrite": ""
            },
            "emailId": "",
            "contactNo": "",
            "noticeDuration": "",
            "currentCity": "",
            "homeTown": "",
            "currentCtc": "",
            "expectedCtc": ""
        },
        "interest": {
            "title": "Other Activities",
            "hobbies": {
                "title": "Interests / Hobbies",
                "list": [
                    { "value": "" }
                ]
            },
            "blogs": {
                "title": "Blogs / Websites",
                "list": [
                    { "value": "" }
                ]
            },
            "projects": {
                "title": "Projects",
                "list": [
                    { "value": "" }
                ]
            }
        }
    };

    var InputData = {
        "profile": {
			"title": "Profile Summary",
            "fullname": "Jagdeep Singh Bisht",
            "designation": "Senior Software Engineer",
            "dateOfBirth": "20 Mar 1990",
            "experienceTotal": "7 years",
			"experienceRelevant": "7 years",
            "gender": "Male"
        },
        "companies": {
			"title": "Work Experience",
			"list": [
	            {
	                "companyName": "IBM",
	                "jobTitle": "Trainee Software Engineer",
	                "startDate": "Sept 2011",
	                "endDate": "Mar 2012",
	                "projects": [
	                    {
	                        "projectName": "IBM Cúram Workers Compensation",
	                        "jobTitle": "Trainee Software Engineer",
	                        "startDate": "Sept 2011",
	                        "endDate": "Mar 2012",
							"responsibilities": [
								{ "value": "Working very hard irrespective of task assigned" },
								{ "value": "Smartly led the task to completion" }
							]
	                    },
	                    {
	                        "projectName": "IBM Cúram Child Care",
	                        "jobTitle": "Associate Software Engineer",
	                        "startDate": "Apr 2012",
	                        "endDate": "Aug 2012",
							"responsibilities": [
								{ "value": "Working very hard irrespective of task assigned" },
								{ "value": "Smartly led the task to completion" }
							]
	                    },
	                    {
	                        "projectName": "IBM Cúram Income Support",
	                        "jobTitle": "Software Engineer",
	                        "startDate": "Sept 2012",
	                        "endDate": "Jun 2015",
							"responsibilities": [
								{ "value": "Working very hard irrespective of task assigned" },
								{ "value": "Smartly led the task to completion" }
							]
	                    }
	                ]
	            },
	            {
	                "companyName": "Amadeus",
	                "jobTitle": "Senior Software Engineer",
	                "startDate": "Jun 2015",
	                "endDate": "Aug 2017",
	                "projects": [
	                    {
	                        "projectName": "Air China",
	                        "jobTitle": "UI Developer",
	                        "startDate": "Sept 2011",
	                        "endDate": "Mar 2012",
							"responsibilities": [
								{ "value": "Working very hard irrespective of task assigned" },
								{ "value": "Smartly led the task to completion" }
							]
	                    },
	                    {
	                        "projectName": "IBM Cúram Child Care",
	                        "jobTitle": "UI Developer",
	                        "startDate": "Apr 2012",
	                        "endDate": "Aug 2012",
							"responsibilities": [
								{ "value": "Working very hard irrespective of task assigned" },
								{ "value": "Smartly led the task to completion" }
							]
	                    }
	                ]
	            }
	        ]
		},
        "educations": {
			"title": "Education Summary",
			"list": [
	            {
	                "educationTitle": "B.E",
	                "studiedFrom": "Bangalore Coll. of Engg. & Tech",
	                "startDate": "Aug 2006",
	                "endDate": "Jun 2010",
	                "specialization": "Computer Science",
	                "score": "100"
	            },
	            {
	                "educationTitle": "12th",
	                "studiedFrom": "Kendriya Vidyalaya A.S.C Centre",
	                "startDate": "Apr 2005",
	                "endDate": "Jun 2006",
	                "specialization": "Computer Science",
	                "score": "100"
	            },
	            {
	                "educationTitle": "10th",
	                "studiedFrom": "Kendriya Vidyalaya A.S.C Centre",
	                "startDate": "Apr 2003",
	                "endDate": "Jun 2004",
	                "specialization": "Computer Science",
	                "score": "100"
	            }
	        ]
		},
        "skills": {
			"title": "Skills List",
			"list": [
	            {
	                "skillName": "Java",
	                "totalExp": "2 years",
	                "versionNo": "7",
	                "studiedFrom": "Online",
	                "selfRating": "7"
	            },
	            {
	                "skillName": "Java",
	                "totalExp": "2 years",
	                "versionNo": "7",
	                "studiedFrom": "Online",
	                "selfRating": "7"
	            }
	        ]
		},
        "experiences": {
			"title": "Professional Experience",
			"list": [
	            { "description": "Experience of using javascript OOP" },
	            { "description": "Very highly experienced in killing time"},
	            { "description": "Can play guitar at times"},
	            { "description": "Highly proficient in cooking non-edible items"}
	        ]
		},
        "activities": {
			"title": "Accomplishments",
			"list":  [
	            { "description": "Got Pinkies number" },
	            { "description": "Healed frodo when he was stabbed" }
	        ]
		},
        "objective": {
			"title": "Career Objective",
            "description": "Wanna rock the world with my amazing products and world changing ideas. Great fan of lean principles. Still trying to understand how to best implement the same."
        },
		"detail": {
			"title": "More Details",
			"languages": {
				"spoken": "English, Hindi, Kannada",
				"readwrite": "English, Hindi"
			},
			"emailId": "hello@jsbisht.in",
			"contactNo": "9743012345",
			"noticeDuration": "2 months",
			"currentCity": "Bangalore",
			"homeTown": "Dehradun",
			"currentCtc": "10 Lac INR",
			"expectedCtc": "20 Lac INR"
		},
		"interest": {
			"title": "Other Activities",
			"hobbies": {
				"title": "Hobbies",
				"list": [
					{ "value": "Table Tennis" },
					{ "value": "Running" },
					{ "value": "Badminton" },
					{ "value": "Volleyball" }
				]
			},
			"blogs": {
				"title": "Blogs / Websites",
				"list": [
					{ "value": "jsbisht.in" },
					{ "value": "inputbox.co" }
				]
			},
			"projects": {
				"title": "Projects",
				"list": [
					{ "value": "Creepy Chat" },
					{ "value": "Inputbox" },
					{ "value": "Preaching Mommy" },
					{ "value": "About Me" }
				]
			}
		}
    };

    return {
        'InputTemplate': InputTemplate,
        'InputData': InputData
    }
 });