angular.module('checklistsService',[]).factory('Checklists',function($http){
	return {
		getPaging:function(filter){
			return $http({method:'POST',url:url_server + 'checklistspaging',data:filter});
		},
		getSelect:function(){
			return $http({method:'POST',url:url_server + 'checklists/getall'});
		},
		getSelect2:function(filter){
			return $http({method:'POST',url:url_server + 'checklists/search',data:filter});
		},
		show:function(id){
				// var checklist1 =	{   id:1,
				// 	title:"In stock reschedule",
				// 	questions:[{"question":"Who was your office contact on this?","fields":[{"type":"select","name":"officeuser","model":"officeuser","getdata":"userAMRS","data":[]}],"nextquestion":2,"show":true},{"question":"What category of product are we installing?","fields":[{"type":"select","name":"service","model":"service","getdata":"servicesProduct","data":[]}],"nextquestion":3,"show":false},{"question":"When will this be installed?","fields":[{"type":"datetime","name":"datetime","model":"date","placeholder":"datetime","options":[{"type":"time","name":"datetime","model":"time","placeholder":"time","data":[]}]},{"label":"Appointment Type:","type":"select","name":"appointmentstype","model":"appointmentstype","getdata":"getappointmentstype","data":[]},{"label":"Customer Type:","type":"select","name":"customertype","model":"customertype","getdata":"getcustomertype","data":[]}],"finish":true,"show":false}]
				// };

				// var checklist2 ={
				// 	id:2,
				// 	title:"Special order parts reschedule Checklist",
				// 	questions:[{"question":"Who was your office contact on this?","fields":[{"type":"select","name":"officeuser","model":"officeuser","getdata":"userAMRS","data":[]}],"nextquestion":2,"show":true},{"question":"What Type of Part do we need to order?","fields":[{"type":"select","name":"replacepart","model":"replacepart","data":[{"id":"1","label":"Springs"},{"id":"2","label":"Logic Board"},{"id":"3","label":"Specialty Ops"},{"id":"4","label":"Commercial"},{"id":"5","label":"Other"}]},{"type":"textselect","name":"replacepartother","model":"replacepartother","modelselect":"replacepart","valueselect":"5","placeholder":"Other Path","data":[]}],"nextquestion":3,"show":false},{"question":"What is the tentative Install date given by the Office for this?","fields":[{"type":"datetime","name":"datetime","model":"date","placeholder":"datetime","options":[{"type":"time","name":"datetime","model":"time","placeholder":"time","data":[]}]},{"label":"Appointment Type:","type":"select","name":"appointmentstype","model":"appointmentstype","getdata":"getappointmentstype","data":[]},{"label":"Customer Type:","type":"select","name":"customertype","model":"customertype","getdata":"getcustomertype","data":[]}],"finish":true,"show":false}]
				// 	//[{"question":"Who was your office contact on this?","fields":[{"type":"select","name":"officeuser","model":"officeuser","getdata":"userAMRS","data":[]}],"nextquestion":2,"show":true},{"question":"Type of door/panel we need to order","fields":[{"type":"select","name":"typeorder","model":"typeorder","data":[{"id":"1","label":"Amarr"},{"id":"2","label":"CHI"},{"id":"3","label":"North Central"},{"id":"4","label":"Ideal/Clopay"},{"id":"5","label":"Midland"},{"id":"6","label":"Safeway"},{"id":"7","label":"Wayne Dalton/Genie/Overhead Door"},{"id":"8","label":"Other"}]},{"type":"textselect","name":"typeorderother","model":"typeorderother","modelselect":"typeorder","valueselect":"8","placeholder":"Other","data":[]}],"nextquestion":3,"show":false},{"question":"What is the tentative Install date told to the Customer?","fields":[{"type":"datetime","name":"datetime","model":"date","placeholder":"datetime","options":[{"type":"time","name":"datetime","model":"time","placeholder":"time","data":[]}]}],"finish":true,"show":false}]
				// };

				// var checklist3 ={
				// 	id:3,
				// 	title:"Special order Door/Panel",
				// 	questions:[{"question":"Who was your office contact on this?","fields":[{"type":"select","name":"officeuser","model":"officeuser","getdata":"userAMRS","data":[]}],"nextquestion":2,"show":true},{"question":"Type of door/panel we need to order","fields":[{"type":"select","name":"typeorder","model":"typeorder","data":[{"id":"1","label":"Amarr"},{"id":"2","label":"CHI"},{"id":"3","label":"North Central"},{"id":"4","label":"Ideal/Clopay"},{"id":"5","label":"Midland"},{"id":"6","label":"Safeway"},{"id":"7","label":"Wayne Dalton/Genie/Overhead Door"},{"id":"8","label":"Other"}]},{"type":"textselect","name":"typeorderother","model":"typeorderother","modelselect":"typeorder","valueselect":"8","placeholder":"Other","data":[]}],"nextquestion":3,"show":false},{"question":"What is the tentative Install date told to the Customer?","fields":[{"type":"datetime","name":"datetime","model":"date","placeholder":"datetime","options":[{"type":"time","name":"datetime","model":"time","placeholder":"time","data":[]}]},{"label":"Appointment Type:","type":"select","name":"appointmentstype","model":"appointmentstype","getdata":"getappointmentstype","data":[]},{"label":"Customer Type:","type":"select","name":"customertype","model":"customertype","getdata":"getcustomertype","data":[]}],"finish":true,"show":false}]
				// };

			
				// var checklist4 ={
				// 	id:4,
				// 	title:"Billing Checklist",
				// 	questions:[{"question":"Billing approved by?","fields":[{"type":"select","name":"officeuser","model":"officeuser","getdata":"userAMRS","data":[]}],"nextquestion":2,"show":true},{"question":"Billing attention needed","fields":[{"type":"select","name":"paymentmethod","model":"paymentmethod","data":[{"id":"1","action":"payment","label":"Payment Plan"},{"id":"2","label":"Need to bill"},{"id":"3","label":"Need to send Invoice"}]},{"type":"textselect","name":"paymentmethodsend","model":"paymentmethodreason","modelselect":"paymentmethod","label":" Reason for Billing?:","valueselect":"2","placeholder":" Reason for Billing?","data":[]},{"type":"dropselect","name":"mailmethod","model":"mailmethod","modelselect":"paymentmethod","valueselect":"3","placeholder":"Other","data":[{"id":"1","label":"Email"},{"id":"2","label":"Mail"}],"options":[{"type":"textselect","name":"email","model":"email","modelselect":"mailmethod","valueselect":"1","placeholder":"Email","data":[]},{"type":"textselect","name":"address","model":"address","modelselect":"mailmethod","valueselect":"2","placeholder":"Address","data":[]}]}],"finish":true,"show":false}]
				// };

				// var checklist5 ={
				// 	id:5,
				// 	title:"Quality CheckList",
				// 	questions:[{"question":"Select one","fields":[{"type":"radio","name":"qalityservice","model":"qalityservice","data":[{"id":"1","label":"Service Work"},{"id":"2","label":"Door Install"}]}],"nextquestion":2,"show":true},{"question":"What Category does the issue fall under","fields":[{"type":"checkbox","name":"category","model":"category","data":[{"id":"1","model":"rcategory1","label":"Spring Line"},{"id":"2","model":"rcategory2","label":"Cables"},{"id":"3","model":"rcategory3","label":"Opener"},{"id":"4","model":"rcategory4","label":"Track"},{"id":"5","model":"rcategory5","label":"PVC/Seal"},{"id":"6","model":"rcategory6","label":"Cleanliness"},{"id":"7","model":"rcategory7","label":"Missing Sticker"},{"id":"8","model":"rcategory8","label":"Items in need of repair not suggested to the customer"}]}],"nextquestion":3,"show":false},{"question":"In detail, describe the issue.","fields":[{"type":"text","name":"detail","required":true,"placeholder":"","model":"detail","data":[]}],"nextquestion":4,"show":false},{"question":"What did you do to rectify the situation?","fields":[{"type":"text","name":"rectify","required":true,"placeholder":"","model":"rectify","data":[]}],"finish":true,"show":false}]
				// };

				// var checklist6 ={
				// 	id:6,
				// 	title:"Site Info",
				// 	questions:[{"question":"Are we replacing the doors?","fields":[{"type":"radio","name":"replacing","model":"replacing","data":[{"id":"1","label":"Yes"},{"id":"2","label":"No","nextquestion":"3"}]}],"nextquestion":2,"show":true},{"question":"Composition of Doors?","fields":[{"type":"select","name":"composition","model":"composition","data":[{"id":"1","label":"Pan/Vinyl Backed"},{"id":"2","label":"Steel on Steel"},{"id":"3","label":"Masonite"},{"id":"4","label":"Wood","nextquestion":"7"}]}],"nextquestion":3,"show":false},{"question":"Rough Size of Door(s)","fields":[{"type":"checkbox","name":"sizeofdoor","model":"sizeofdoor","data":[{"id":"1","model":"rdoor1","label":"16x7","options":[{"checked":"1","name":"input","value":"1","type":"number","model":"rdoor1quantity","requireif":true}]},{"id":"2","model":"rdoor2","label":"16x8","options":[{"name":"input","value":"1","type":"number","model":"rdoor2quantity","requireif":true}]},{"id":"3","model":"rdoor3","label":"18x7","options":[{"name":"input","value":"1","type":"number","model":"rdoor3quantity","requireif":true}]},{"id":"4","model":"rdoor4","label":"18x8","options":[{"name":"input","value":"1","type":"number","model":"rdoor4quantity","requireif":true}]},{"id":"5","model":"rdoor5","label":"15x7","options":[{"name":"input","value":"1","type":"number","model":"rdoor5quantity","requireif":true}]},{"id":"6","model":"rdoor6","label":"15x8","options":[{"name":"input","value":"1","type":"number","model":"rdoor6quantity","requireif":true}]},{"id":"7","model":"rdoor7","label":"10x7","options":[{"name":"input","value":"1","type":"number","model":"rdoor7quantity","requireif":true}]},{"id":"8","model":"rdoor8","label":"10x8","options":[{"name":"input","value":"1","type":"number","model":"rdoor8quantity","requireif":true}]},{"id":"9","model":"rdoor9","label":"9x7","options":[{"name":"input","value":"1","type":"number","model":"rdoor9quantity","requireif":true}]},{"id":"10","model":"rdoor10","label":"9x8","options":[{"name":"input","value":"1","type":"number","model":"rdoor10quantity","requireif":true}]},{"id":"11","model":"rdoor11","label":"8x7","options":[{"name":"input","value":"1","type":"number","model":"rdoor11quantity","requireif":true}]},{"id":"12","model":"rdoor12","label":"8x8","options":[{"name":"input","value":"1","type":"number","model":"rdoor12quantity","requireif":true}]},{"id":"13","model":"rdoor13","label":"Other","options":[{"name":"input","placeholder":"size other","type":"text","model":"sizeother","requireif":true},{"name":"textarea","type":"textarea","placeholder":"option other","model":"optionsother","requireif":true}]}]}],"nextquestion":4,"show":false},{"question":"Door Manufacturer?","fields":[{"type":"select","name":"manufacturer","model":"manufacturer","data":[{"id":"1","model":"rmanufacturer1","label":"Amarr"},{"id":"2","model":"rmanufacturer2","label":"CHI"},{"id":"3","model":"rmanufacturer3","label":"North Central"},{"id":"4","model":"rmanufacturer4","label":"Ideal/Clopay"},{"id":"5","model":"rmanufacturer5","label":"Midland"},{"id":"6","model":"rmanufacturer6","label":"Safeway"},{"id":"7","model":"rmanufacturer7","label":"Ankmar"},{"id":"8","model":"rmanufacturer8","label":"Raynor"},{"id":"9","model":"rmanufacturer9","label":"Wayne Dalton/Genie/Overhead Door"},{"id":"10","model":"rmanufacturer10","label":"Midamerica"},{"id":"11","model":"rmanufacturer11","label":"Masonite"},{"id":"12","model":"rmanufacturer12","label":"Steel Framed Wood Panel"},{"id":"13","model":"rmanufacturer13","label":"Wood raised panel"},{"id":"14","model":"rmanufacturer14","label":"Door Manufacturer Cannot be Determined"},{"id":"15","model":"rmanufacturer15","children":["manufacturerother"],"label":"Other"}]},{"type":"textselect","name":"other","model":"manufacturerother","modelselect":"manufacturer","valueselect":"15","placeholder":"Manualfacturer","data":[]}],"nextquestion":5,"show":false},{"question":"Door Color","fields":[{"type":"select","name":"color","model":"color","data":[{"id":"1","model":"rcolor1","label":"White"},{"id":"2","model":"rcolor2","label":"Almond"},{"id":"3","model":"rcolor3","label":"Sandtone"},{"id":"4","model":"rcolor4","label":"Brown"},{"id":"5","model":"rcolor5","label":"Green"},{"id":"6","model":"rcolor6","label":"Grey"},{"id":"7","model":"rcolor7","label":"Woodgrain"},{"id":"8","model":"rcolor8","label":"Other"},{"id":"9","model":"rcolor9","label":"Custom Painted"}]}],"nextquestion":6,"show":false},{"question":"Panel Style","fields":[{"type":"select","name":"panelstyle","model":"panelstyle","data":[{"id":"1","model":"rpanelstyle1","label":"Short Panel"},{"id":"2","model":"rpanelstyle2","label":"Long Panel"},{"id":"3","model":"rpanelstyle3","label":"Flush"},{"id":"4","model":"rpanelstyle4","label":"Ribbed"},{"id":"5","model":"rpanelstyle5","label":"Bead Board"},{"id":"6","model":"rpanelstyle6","label":"Wood Raised/Recessed"},{"id":"7","model":"rpanelstyle7","label":"Other"}]}],"nextquestion":7,"show":false},{"question":"Opener Manufacturer","fields":[{"type":"checkbox","name":"opener","model":"opener","data":[{"id":"1","model":"ropener1","label":"Reliable Installed Opener"},{"id":"2","model":"ropener2","label":"Liftmaster"},{"id":"3","model":"ropener3","label":"Chamberlain"},{"id":"4","model":"ropener4","label":"Craftsman"},{"id":"5","model":"ropener5","label":"Genie"},{"id":"6","model":"ropener6","label":"Overhead Garage Door"},{"id":"7","model":"ropener7","label":"Xtreme"},{"id":"8","model":"ropener8","label":"Guardian"},{"id":"9","model":"ropener9","label":"Linear/Moore-o-Matic"},{"id":"10","model":"ropener10","label":"Wayne Dalton"},{"id":"11","model":"ropener11","label":"Other","options":[{"name":"input","placeholder":"","type":"text","model":"reason2","requireif":true}]}]}],"nextquestion":8,"show":false},{"question":"Type of opener","fields":[{"type":"select","name":"typeopener","model":"typeopener","data":[{"id":"1","model":"ropener1","label":"Chain drive"},{"id":"2","model":"ropener2","label":"Belt"},{"id":"3","model":"ropener3","label":"Screw"},{"id":"4","model":"ropener4","label":"Jackshaft"},{"id":"5","model":"ropener5","label":"No Opener"}]}],"finish":true,"show":false}]
				// };

				// var checklist7 ={
				// 	id:7,
				// 	title:"Repair checklist",
				// 	questions:[{"question":"Did you install an opener?","fields":[{"type":"radio","name":"installopener","model":"installopener","data":[{"id":"1","label":"Yes"},{"id":"2","label":"No","nextquestion":"7"}]}],"nextquestion":2,"show":true},{"question":"What accessories do you suggest to the customer that were not purchased?","fields":[{"type":"checkbox","name":"accessories","model":"accessories","data":[{"id":"1","model":"raccessories1","label":"Keyless"},{"id":"2","model":"raccessories2","label":"Gateway"},{"id":"3","model":"raccessories3","label":"Battery Backup"},{"id":"4","model":"raccessories4","label":"Door Monitor"},{"id":"5","model":"raccessories5","label":"none of the above"}]}],"nextquestion":3,"show":false},{"question":"Are the safety sensors bolted to the track?","fields":[{"type":"radio","name":"sensors","model":"sensors","data":[{"id":"1","label":"Yes"},{"id":"2","label":"No","options":[{"name":"sensorsreason","placeholder":"Describe why not in detail","type":"text","model":"sensorsreason"}]}]}],"nextquestion":4,"show":false},{"question":"Did you run new wires for the wall button and the safety sensors?","fields":[{"type":"radio","name":"newwires","model":"newwires","data":[{"id":"1","label":"Yes"},{"id":"2","label":"No","options":[{"name":"newwiresreason","placeholder":"Describe why not in detail","type":"text","model":"newwiresreason"}]}]}],"nextquestion":5,"show":false},{"question":"Did you hand the Customer the owner's manual?","fields":[{"type":"radio","name":"handlecustomer","model":"handlecustomer","data":[{"id":"1","label":"Yes"},{"id":"2","label":"No","options":[{"name":"newwiresreason","placeholder":"Describe why not in detail","type":"text","model":"newwiresreason"}]}]}],"nextquestion":7,"show":false},{"question":"Did you thoroughly explain the Wall Control, Safety Sensors and the installed accessories?","fields":[{"type":"radio","name":"explain","model":"explain","data":[{"id":"1","label":"Yes"},{"id":"2","label":"No","options":[{"name":"explainreason","placeholder":"Describe why not in detail","type":"text","model":"explainreason"}]}]}],"nextquestion":7,"show":false},{"question":"Force Level 1-9?","fields":[{"type":"radio","name":"forelevel","model":"forelevel","data":[{"id":"1","label":"Electronic","model":"rforelevel1"},{"id":"2","label":"1","model":"rforelevel2"},{"id":"3","label":"2","model":"rforelevel3"},{"id":"4","label":"3","model":"rforelevel4"},{"id":"5","label":"4","model":"rforelevel5"},{"id":"6","label":"5","model":"rforelevel6"},{"id":"7","label":"6","model":"rforelevel7"},{"id":"8","label":"7","model":"rforelevel8","options":[{"name":"forelevel8detail","placeholder":"Describe why limit is so high in detail?","type":"text","model":"forelevel8detail","requireif":true}]},{"id":"9","label":"8","model":"rforelevel9","options":[{"name":"forelevel9detail","placeholder":"Describe why limit is so high in detail?","type":"text","model":"forelevel9detail","requireif":true}]},{"id":"10","label":"9","model":"rforelevel10","options":[{"name":"forelevel10detail","placeholder":"Describe why limit is so high in detail?","type":"text","model":"forelevel10detail","requireif":true}]}]}],"nextquestion":8,"show":false},{"question":"Did you educate customer on installed products?","fields":[{"type":"radio","name":"educate","model":"educate","data":[{"id":"1","label":"Yes"},{"id":"2","label":"No","options":[{"name":"educatereason","placeholder":"Describe why not in detail","type":"text","model":"educatereason"}]}]}],"nextquestion":9,"show":false},{"question":"Which items did you suggest that the customer did not purchase?","fields":[{"type":"checkbox","name":"notpurchase","model":"notpurchase","data":[{"id":"1","label":"Cables","model":"rnotpurchase1"},{"id":"2","model":"rnotpurchase2","label":"Rollers"},{"id":"3","model":"rnotpurchase3","label":"Seal"},{"id":"4","model":"rnotpurchase4","label":"Struts"},{"id":"5","model":"rnotpurchase5","label":"Opener"},{"id":"6","model":"rnotpurchase6","label":"Track"},{"id":"7","model":"rnotpurchase7","label":"Bottom Brackets"},{"id":"8","model":"rnotpurchase8","label":"End Bearings"},{"id":"9","model":"rnotpurchase9","label":"Shaft"},{"id":"10","model":"rnotpurchase10","label":"Springs"},{"id":"11","model":"rnotpurchase11","label":"Opener Accessories"},{"id":"12","model":"rnotpurchase12","label":"None of Above","nextquestion":11}]}],"nextquestion":10,"show":false},{"question":"What was the customers barrier to purchase on those items?","fields":[{"type":"checkbox","name":"barrierpurchase","model":"barrierpurchase","data":[{"id":"1","label":"Price","model":"rbarrierpurchase1","options":[{"name":"barrierpurchasedetail","placeholder":"","type":"text","model":"barrierpurchasedetail","requireif":true}]},{"id":"2","label":"Decision Maker","model":"rbarrierpurchase2","options":[{"name":"barrierpurchasemaker","placeholder":"","type":"text","model":"barrierpurchasemaker","requireif":true}]},{"id":"3","label":"Budget","model":"rbarrierpurchase3","options":[{"name":"barrierpurchasebudget","placeholder":"","type":"text","model":"barrierpurchasebudget","requireif":true}]},{"id":"4","label":"Doesn't believe it's needed","model":"rbarrierpurchase4","options":[{"name":"barrierpurchasebelieve","placeholder":"","type":"text","model":"barrierpurchasebelievet","requireif":true}]},{"id":"5","model":"rbarrierpurchase5","label":"Planning on Replacing Door","options":[{"name":"barrierpurchaseplanning","placeholder":"","type":"text","model":"barrierpurchaseplanning","requireif":true}]},{"id":"6","model":"rbarrierpurchase6","label":"Selling Home","options":[{"name":"barrierpurchaseselling","placeholder":"","type":"text","model":"barrierpurchaseselling","requireif":true}]}]}],"nextquestion":11,"show":false},{"question":"Does the door balance? (Door holds itself up at top but can be easily closed.  Door holds itself when half way up.  Door softly closes on its own and does not creep up at the bottom)","fields":[{"type":"radio","name":"doorbalance","model":"doorbalance","data":[{"id":"1","label":"Yes"},{"id":"2","label":"No","options":[{"name":"doorbalancereason","placeholder":"Describe why not in detail","type":"text","model":"doorbalancereason"}]}]}],"nextquestion":12,"show":false},{"question":"Did you apply lubricant to the Hinges, Rollers, Track, End Bearings, Springs?","fields":[{"type":"radio","name":"lubricant","model":"lubricant","data":[{"id":"1","label":"Yes"},{"id":"2","label":"No","options":[{"name":"lubricantreason","placeholder":"Describe why not in detail","type":"text","model":"lubricantreason"}]}]}],"nextquestion":13,"show":false},{"question":"Did you inspect and clean up interior/exterior of job site (i.e.. Fingerprints, Nuts & Bolts)","fields":[{"type":"radio","name":"inspect","model":"inspect","data":[{"id":"1","label":"Yes"},{"id":"2","label":"No","options":[{"name":"inspectereason","placeholder":"Describe why not in detail","type":"text","model":"inspectereason"}]}]}],"nextquestion":14,"show":false},{"question":"Did you double check for tools? (i.e.. Battery Chargers, Ladders)","fields":[{"type":"radio","name":"doublecheck","model":"doublecheck","data":[{"id":"1","label":"Yes"},{"id":"2","label":"No","options":[{"name":"doublecheckreason","placeholder":"Describe why not in detail","type":"text","model":"doublecheckreason"}]}]}],"nextquestion":15,"show":false},{"question":"Is there a sticker up? (Current Logo)","fields":[{"type":"radio","name":"sticker","model":"sticker","data":[{"id":"1","label":"Yes"},{"id":"2","label":"No","options":[{"name":"stickerreason","placeholder":"Describe why not in detail","type":"text","model":"stickerreason"}]}]}],"nextquestion":16,"show":false},{"question":"Did you ask for a review?","fields":[{"type":"radio","name":"review","model":"review","data":[{"id":"1","label":"Yes"},{"id":"2","label":"No","options":[{"name":"reviewreason","placeholder":"Describe why not in detail","type":"text","model":"reviewreason"}]}]}],"nextquestion":17,"show":false},{"question":"Did you leave detailed appointment notes?","fields":[{"type":"radio","name":"leavedetailed","model":"leavedetailed","data":[{"id":"1","label":"Yes"},{"id":"2","label":"No","options":[{"name":"leavedetailedreason","placeholder":"Describe why not in detail","type":"text","model":"leavedetailedreason"}]}]}],"finish":true,"show":false}]
				// };

				// var checklist8 ={
				// 	id:8,
				// 	title:"Door Sale/Estimate checklist",
				// 	questions:[{"question":"Is the garage clean and ready for door installation?","fields":[{"type":"radio","name":"clean","model":"clean","data":[{"id":"1","label":"Yes","nextquestion":3},{"id":"2","label":"No"}]}],"nextquestion":2,"show":true},{"question":"Was the Installation memo given to the customer and explained in detail?","fields":[{"type":"radio","name":"installation","model":"installation","data":[{"id":"1","label":"Yes"},{"id":"2","label":"No","options":[{"name":"installationreason","placeholder":"Why not?","type":"text","model":"installationreason"}]}]}],"nextquestion":3,"show":false},{"question":"Is the wood around the frame good where we attatch the jamb brackets in good condition?","fields":[{"type":"radio","name":"woodandframe","model":"woodandframe","data":[{"id":"1","label":"Yes"},{"id":"2","label":"No","options":[{"name":"woodandframereason","placeholder":"Why not?","type":"text","model":"woodandframereason"}]}]}],"nextquestion":4,"show":false},{"question":"Is there a service door, shelf, or any other obstacles that the door or track must clear?","fields":[{"type":"radio","name":"obstacles","model":"obstacles","data":[{"id":"1","label":"Yes","options":[{"name":"obstaclesreason","placeholder":"Decription","type":"text","model":"obstaclesframereason"},{"name":"obstaclesimage","placeholder":"why?","type":"file","model":"obstaclesimage"}]},{"id":"2","label":"No"}]}],"nextquestion":5,"show":false},{"question":"Which of these situations are we encountering on this jobsite?","fields":[{"type":"checkbox","name":"situations","model":"situations","data":[{"id":"1","model":"rsituations1","label":"Uneven/cracked concrete","options":[{"name":"concretereason","placeholder":"Decription","type":"text","model":"concreteframereason"},{"name":"concreteimage","placeholder":"why?","type":"file","model":"concreteimage"}]},{"id":"2","model":"rsituations2","label":"Nonfunctioning door"},{"id":"3","model":"rsituations3","label":"No outlet for opener/bring extension cord"},{"id":"4","model":"rsituations4","label":"Opening not square"},{"id":"5","model":"rsituations5","label":"Customer will not be onsite"},{"id":"6","model":"rsituations6","label":"Square head nuts and bolts"},{"id":"7","model":"rsituations7","label":"Obstructions that cannot be moved","options":[{"name":"obstructionsreason","placeholder":"Decription","type":"text","model":"obstructionsreason"},{"name":"concreteimage","placeholder":"why?","type":"file","model":"concreteimage"}]},{"id":"8","model":"rsituations8","label":"old hardware mounted behind drywall"},{"id":"9","model":"rsituations9","label":"High ceilings - Over 10'"},{"id":"10","model":"rsituations10","label":"Current stop is behind the tin wrap"},{"id":"11","model":"rsituations11","label":"limited side room"},{"id":"12","model":"rsituations12","label":"Concrete walls or ceilings"},{"id":"13","model":"rsituations13","label":"Need extra wood for centerplate"},{"id":"14","model":"rsituations14","label":"None"}]}],"nextquestion":6,"show":false},{"question":"Are pictures of the exterior and interior of the door saved on file?","fields":[{"type":"radio","name":"saved","model":"saved","data":[{"id":"1","label":"Yes"},{"id":"2","label":"No","options":[{"name":"savedreason","placeholder":"Why not?","type":"text","model":"savedreason"}]}]}],"finish":true,"show":false}]
				// };

				// var checklist9 ={
				// 	id:9,
				// 	title:"Installation checklist",
				// 	questions:[{"question":"Are both cables tight when door is open?","fields":[{"type":"radio","name":"cablestight","model":"cablestight","data":[{"id":"1","label":"Yes"},{"id":"2","label":"No","options":[{"name":"cablestightreason","placeholder":"Why not?","type":"text","model":"cablestightreason"}]}]}],"nextquestion":2,"show":true},{"question":"Are the drums tight to the end bearing plate?","fields":[{"type":"radio","name":"drumstight","model":"drumstight","data":[{"id":"1","label":"Yes"},{"id":"2","label":"No","options":[{"name":"drumstightreason","placeholder":"Why not?","type":"text","model":"drumstightreason"}]}]}],"nextquestion":3,"show":false},{"question":"Is the door clearing the opener rail without rubbing?","fields":[{"type":"radio","name":"withoutrubbing","model":"withoutrubbing","data":[{"id":"1","label":"Yes"},{"id":"2","label":"No","options":[{"name":"withoutrubbingreason","placeholder":"Why not?","type":"text","model":"withoutrubbingreason"}]}]}],"nextquestion":4,"show":false},{"question":"Horizontal Track (Level and proper roller spacing)","fields":[{"type":"radio","name":"horizontaltrack","model":"horizontaltrack","data":[{"id":"1","label":"Yes"},{"id":"2","label":"No","options":[{"name":"horizontaltrackreason","placeholder":"Why not?","type":"text","model":"horizontaltrackreason"}]}]}],"nextquestion":5,"show":false},{"question":"Are all jambs brackets properly attached to the wall and track using?","fields":[{"type":"radio","name":"jambsbrackets","model":"jambsbrackets","data":[{"id":"1","label":"Yes"},{"id":"2","label":"No","options":[{"name":"jambsbracketsreason","placeholder":"Why not?","type":"text","model":"jambsbracketsreason"}]}]}],"nextquestion":6,"show":false},{"question":"Are all track bolts properly tightened?","fields":[{"type":"radio","name":"trackbolts","model":"trackbolts","data":[{"id":"1","label":"Yes"},{"id":"2","label":"No","options":[{"name":"trackboltsreason","placeholder":"Why not?","type":"text","model":"trackboltsreason"}]}]}],"nextquestion":7,"show":false},{"question":"Does the door balance? (Door holds itself up at top but can be easily closed.  Door holds itself when half way up.  Door softly closes on its own and does not creep up at the bottom)","fields":[{"type":"radio","name":"doorbalance","model":"doorbalance","data":[{"id":"1","label":"Yes"},{"id":"2","label":"No","options":[{"name":"doorbalancereason","placeholder":"Why not?","type":"text","model":"doorbalancereason"}]}]}],"nextquestion":8,"show":false},{"question":"Did you apply lubricant to the Hinges, Rollers, Track, End Bearings, Springs?","fields":[{"type":"radio","name":"lubricant","model":"lubricant","data":[{"id":"1","label":"Yes"},{"id":"2","label":"No","options":[{"name":"lubricantreason","placeholder":"Why not?","type":"text","model":"lubricantreason"}]}]}],"nextquestion":9,"show":false},{"question":"Is the door sealing at the bottom?","fields":[{"type":"radio","name":"doorsealing","model":"doorsealing","data":[{"id":"1","label":"Yes","nextquestion":11},{"id":"2","label":"No","options":[{"name":"doorsealingreason","placeholder":"Why not?","type":"text","model":"doorsealingreason"}]}]}],"nextquestion":10,"show":false},{"question":"Was customer informed about the door not sealing?","fields":[{"type":"radio","name":"doornotsealing","model":"doornotsealing","data":[{"id":"1","label":"Yes"},{"id":"2","label":"No","options":[{"name":"doornotsealingreason","placeholder":"Why not?","type":"text","model":"doornotsealingreason"}]}]}],"nextquestion":11,"show":false},{"question":"Did you clean the interior and exterior of the door as well as the PVC?","fields":[{"type":"radio","name":"cleanIE","model":"cleanIE","data":[{"id":"1","label":"Yes"},{"id":"2","label":"No","options":[{"name":"cleanIEreason","placeholder":"Why not?","type":"text","model":"cleanIEreason"}]}]}],"nextquestion":12,"show":false},{"question":"When you inspected the door did you make sure to hit any scratches with touch up paint?","fields":[{"type":"radio","name":"inspected","model":"inspected","data":[{"id":"1","label":"Yes"},{"id":"2","label":"No","options":[{"name":"inspectedreason","placeholder":"Why not?","type":"text","model":"inspectedreason"}]}]}],"nextquestion":13,"show":false},{"question":"Force Level 1-9?","fields":[{"type":"radio","name":"forelevel","model":"forelevel","data":[{"id":"1","label":"Electronic","model":"rforelevel1"},{"id":"2","label":"1","model":"rforelevel2"},{"id":"3","label":"2","model":"rforelevel3"},{"id":"4","label":"3","model":"rforelevel4"},{"id":"5","label":"4","model":"rforelevel5"},{"id":"6","label":"5","model":"rforelevel6"},{"id":"7","label":"6","model":"rforelevel7"},{"id":"8","label":"7","model":"rforelevel8","options":[{"name":"forelevel8detail","placeholder":"Describe why limit is so high in detail?","type":"text","model":"forelevel8detail","requireif":true}]},{"id":"9","label":"8","model":"rforelevel9","options":[{"name":"forelevel9detail","placeholder":"Describe why limit is so high in detail?","type":"text","model":"forelevel9detail","requireif":true}]},{"id":"10","label":"9","model":"rforelevel10","options":[{"name":"forelevel10detail","placeholder":"Describe why limit is so high in detail?","type":"text","model":"forelevel10detail","requireif":true}]}]}],"nextquestion":14,"show":false},{"question":"Are the down limits correct? (Op rail is taut but not bowing up)","fields":[{"type":"radio","name":"downlimits","model":"downlimits","data":[{"id":"1","label":"Yes"},{"id":"2","label":"No","options":[{"name":"downlimitsreason","placeholder":"Why not?","type":"text","model":"downlimitsreason"}]}]}],"nextquestion":15,"show":false},{"question":"Are the up limits correct? (Door opens just barely further than opening)","fields":[{"type":"radio","name":"uplimits","model":"uplimits","data":[{"id":"1","label":"Yes"},{"id":"2","label":"No","options":[{"name":"uplimitsreason","placeholder":"Why not?","type":"text","model":"uplimitsreason"}]}]}],"nextquestion":16,"show":false},{"question":"Did you lube the Opener Rail with Liftmaster supplied grease?","fields":[{"type":"radio","name":"lube","model":"lube","data":[{"id":"1","label":"Yes"},{"id":"2","label":"No","options":[{"name":"lubereason","placeholder":"Why not?","type":"text","model":"lubereason"}]}]}],"nextquestion":17,"show":false},{"question":"Did you clean up the interior of the jobsite? (ie. Pick up Screws, scraps, and cardboard)","fields":[{"type":"radio","name":"interior","model":"interior","data":[{"id":"1","label":"Yes"},{"id":"2","label":"No","options":[{"name":"interiorreason","placeholder":"Why not?","type":"text","model":"interiorreason"}]}]}],"nextquestion":18,"show":false},{"question":"Did you double check that you packed all of your tools? (Battery Charger, ladders, saw horses, etc)","fields":[{"type":"radio","name":"doublecheck","model":"doublecheck","data":[{"id":"1","label":"Yes"},{"id":"2","label":"No","options":[{"name":"doublecheckreason","placeholder":"Why not?","type":"text","model":"doublecheckreason"}]}]}],"nextquestion":19,"show":false},{"question":"3 Stickers placed (Wall Control - Door - Opener)","fields":[{"type":"radio","name":"wdo","model":"wdo","data":[{"id":"1","label":"Yes"},{"id":"2","label":"No","options":[{"name":"wdoreason","placeholder":"Why not?","type":"text","model":"wdoreason"}]}]}],"nextquestion":20,"show":false},{"question":"Did you clean up the exterior? (ie. Pick up screws from driveway, get all scraps, and cardboard)","fields":[{"type":"radio","name":"cleanE","model":"cleanE","data":[{"id":"1","label":"Yes"},{"id":"2","label":"No","options":[{"name":"cleanEreason","placeholder":"Why not?","type":"text","model":"cleanEreason"}]}]}],"nextquestion":21,"show":false},{"question":"Did you take the required pictures: before of door, after of Door, both verts, both hors, spring line, and of opener","fields":[{"type":"radio","name":"pictures","model":"pictures","data":[{"id":"1","label":"Yes"},{"id":"2","label":"No","options":[{"name":"picturesreason","placeholder":"Why not?","type":"text","model":"picturesreason"}]}]}],"nextquestion":22,"show":false},{"question":"Is there any follow up needed or do we need to set up a return trip?","fields":[{"type":"radio","name":"needToSetup","model":"needToSetup","data":[{"id":"1","label":"Yes","options":[{"name":"needToSetupreason","placeholder":"Why","type":"text","model":"needToSetupreason"}]},{"id":"2","label":"No"}]}],"finish":true,"show":false}]
				// };
				
				// if(tier.t1){
				// 	checklist9.questions = [{"question":"Are both cables tight when door is open?","fields":[{"type":"radio","name":"cablestight","model":"cablestight","data":[{"id":"1","label":"Yes"},{"id":"2","label":"No","options":[{"name":"cablestightreason","placeholder":"Why not?","type":"text","model":"cablestightreason"}]}]}],"nextquestion":2,"show":true},{"question":"Are the drums tight to the end bearing plate?","fields":[{"type":"radio","name":"drumstight","model":"drumstight","data":[{"id":"1","label":"Yes"},{"id":"2","label":"No","options":[{"name":"drumstightreason","placeholder":"Why not?","type":"text","model":"drumstightreason"}]}]}],"nextquestion":3,"show":false},{"question":"Is the door clearing the opener rail without rubbing?","fields":[{"type":"radio","name":"withoutrubbing","model":"withoutrubbing","data":[{"id":"1","label":"Yes"},{"id":"2","label":"No","options":[{"name":"withoutrubbingreason","placeholder":"Why not?","type":"text","model":"withoutrubbingreason"}]}]}],"nextquestion":4,"show":false},{"question":"Horizontal Track (Level and proper roller spacing)","fields":[{"type":"radio","name":"horizontaltrack","model":"horizontaltrack","data":[{"id":"1","label":"Yes"},{"id":"2","label":"No","options":[{"name":"horizontaltrackreason","placeholder":"Why not?","type":"text","model":"horizontaltrackreason"}]}]}],"nextquestion":5,"show":false},{"question":"Are all jambs brackets properly attached to the wall and track using?","fields":[{"type":"radio","name":"jambsbrackets","model":"jambsbrackets","data":[{"id":"1","label":"Yes"},{"id":"2","label":"No","options":[{"name":"jambsbracketsreason","placeholder":"Why not?","type":"text","model":"jambsbracketsreason"}]}]}],"nextquestion":6,"show":false},{"question":"Are all track bolts properly tightened?","fields":[{"type":"radio","name":"trackbolts","model":"trackbolts","data":[{"id":"1","label":"Yes"},{"id":"2","label":"No","options":[{"name":"trackboltsreason","placeholder":"Why not?","type":"text","model":"trackboltsreason"}]}]}],"nextquestion":7,"show":false},{"question":"Does the door balance? (Door holds itself up at top but can be easily closed.  Door holds itself when half way up.  Door softly closes on its own and does not creep up at the bottom)","fields":[{"type":"radio","name":"doorbalance","model":"doorbalance","data":[{"id":"1","label":"Yes"},{"id":"2","label":"No","options":[{"name":"doorbalancereason","placeholder":"Why not?","type":"text","model":"doorbalancereason"}]}]}],"nextquestion":8,"show":false},{"question":"Did you apply lubricant to the Hinges, Rollers, Track, End Bearings, Springs?","fields":[{"type":"radio","name":"lubricant","model":"lubricant","data":[{"id":"1","label":"Yes"},{"id":"2","label":"No","options":[{"name":"lubricantreason","placeholder":"Why not?","type":"text","model":"lubricantreason"}]}]}],"nextquestion":9,"show":false},{"question":"Is the door sealing at the bottom?","fields":[{"type":"radio","name":"doorsealing","model":"doorsealing","data":[{"id":"1","label":"Yes","nextquestion":11},{"id":"2","label":"No","options":[{"name":"doorsealingreason","placeholder":"Why not?","type":"text","model":"doorsealingreason"}]}]}],"nextquestion":10,"show":false},{"question":"Was customer informed about the door not sealing?","fields":[{"type":"radio","name":"doornotsealing","model":"doornotsealing","data":[{"id":"1","label":"Yes"},{"id":"2","label":"No","options":[{"name":"doornotsealingreason","placeholder":"Why not?","type":"text","model":"doornotsealingreason"}]}]}],"nextquestion":11,"show":false},{"question":"Did you clean the interior and exterior of the door as well as the PVC?","fields":[{"type":"radio","name":"cleanIE","model":"cleanIE","data":[{"id":"1","label":"Yes"},{"id":"2","label":"No","options":[{"name":"cleanIEreason","placeholder":"Why not?","type":"text","model":"cleanIEreason"}]}]}],"nextquestion":12,"show":false},{"question":"When you inspected the door did you make sure to hit any scratches with touch up paint?","fields":[{"type":"radio","name":"inspected","model":"inspected","data":[{"id":"1","label":"Yes"},{"id":"2","label":"No","options":[{"name":"inspectedreason","placeholder":"Why not?","type":"text","model":"inspectedreason"}]}]}],"nextquestion":13,"show":false},{"question":"Force Level 1-9?","fields":[{"type":"radio","name":"forelevel","model":"forelevel","data":[{"id":"1","label":"Electronic","model":"rforelevel1"},{"id":"2","label":"1","model":"rforelevel2"},{"id":"3","label":"2","model":"rforelevel3"},{"id":"4","label":"3","model":"rforelevel4"},{"id":"5","label":"4","model":"rforelevel5"},{"id":"6","label":"5","model":"rforelevel6"},{"id":"7","label":"6","model":"rforelevel7"},{"id":"8","label":"7","model":"rforelevel8","options":[{"name":"forelevel8detail","placeholder":"Describe why limit is so high in detail?","type":"text","model":"forelevel8detail","requireif":true}]},{"id":"9","label":"8","model":"rforelevel9","options":[{"name":"forelevel9detail","placeholder":"Describe why limit is so high in detail?","type":"text","model":"forelevel9detail","requireif":true}]},{"id":"10","label":"9","model":"rforelevel10","options":[{"name":"forelevel10detail","placeholder":"Describe why limit is so high in detail?","type":"text","model":"forelevel10detail","requireif":true}]}]}],"nextquestion":14,"show":false},{"question":"Are the down limits correct? (Op rail is taut but not bowing up)","fields":[{"type":"radio","name":"downlimits","model":"downlimits","data":[{"id":"1","label":"Yes"},{"id":"2","label":"No","options":[{"name":"downlimitsreason","placeholder":"Why not?","type":"text","model":"downlimitsreason"}]}]}],"nextquestion":15,"show":false},{"question":"Are the up limits correct? (Door opens just barely further than opening)","fields":[{"type":"radio","name":"uplimits","model":"uplimits","data":[{"id":"1","label":"Yes"},{"id":"2","label":"No","options":[{"name":"uplimitsreason","placeholder":"Why not?","type":"text","model":"uplimitsreason"}]}]}],"nextquestion":16,"show":false},{"question":"Did you lube the Opener Rail with Liftmaster supplied grease?","fields":[{"type":"radio","name":"lube","model":"lube","data":[{"id":"1","label":"Yes"},{"id":"2","label":"No","options":[{"name":"lubereason","placeholder":"Why not?","type":"text","model":"lubereason"}]}]}],"nextquestion":17,"show":false},{"question":"Did you clean up the interior of the jobsite? (ie. Pick up Screws, scraps, and cardboard)","fields":[{"type":"radio","name":"interior","model":"interior","data":[{"id":"1","label":"Yes"},{"id":"2","label":"No","options":[{"name":"interiorreason","placeholder":"Why not?","type":"text","model":"interiorreason"}]}]}],"nextquestion":18,"show":false},{"question":"Did you double check that you packed all of your tools? (Battery Charger, ladders, saw horses, etc)","fields":[{"type":"radio","name":"doublecheck","model":"doublecheck","data":[{"id":"1","label":"Yes"},{"id":"2","label":"No","options":[{"name":"doublecheckreason","placeholder":"Why not?","type":"text","model":"doublecheckreason"}]}]}],"nextquestion":19,"show":false},{"question":"3 Stickers placed (Wall Control - Door - Opener)","fields":[{"type":"radio","name":"wdo","model":"wdo","data":[{"id":"1","label":"Yes"},{"id":"2","label":"No","options":[{"name":"wdoreason","placeholder":"Why not?","type":"text","model":"wdoreason"}]}]}],"nextquestion":20,"show":false},{"question":"Did you clean up the exterior? (ie. Pick up screws from driveway, get all scraps, and cardboard)","fields":[{"type":"radio","name":"cleanE","model":"cleanE","data":[{"id":"1","label":"Yes"},{"id":"2","label":"No","options":[{"name":"cleanEreason","placeholder":"Why not?","type":"text","model":"cleanEreason"}]}]}],"nextquestion":21,"show":false},{"question":"Did you take the required pictures: before of door, after of Door, both verts, both hors, spring line, and of opener","fields":[{"type":"radio","name":"pictures","model":"pictures","data":[{"id":"1","label":"Yes"},{"id":"2","label":"No","options":[{"name":"picturesreason","placeholder":"Why not?","type":"text","model":"picturesreason"}]}]}],"finish":true,"show":false}];
				// }

				// var checklist10 ={
				// 	id:10,
				// 	title:"Safety/Issue Checklist",
				// 	questions:[{"question":"What category is the issue?","fields":[{"type":"checkbox","name":"categoryissue","model":"categoryissue","data":[{"id":"1","model":"rcategoryissue1","label":"Cable(s) are near breaking"},{"id":"2","model":"rcategoryissue2","label":"Door is dangerously heavy"},{"id":"3","model":"rcategoryissue3","label":"Opener does not have safety sensors"},{"id":"4","model":"rcategoryissue4","label":"Extension springs do not have Safety cables"},{"id":"5","model":"rcategoryissue5","label":"Shaft is nearly cut through"},{"id":"6","model":"rcategoryissue6","label":"Door is not fully secured and is at risk of falling "},{"id":"7","model":"rcategoryissue7","label":"Sections are cracking and at significant risk of caving in"},{"id":"8","model":"rcategoryissue8","label":"Opener Power (extension cord, light socket, adapter)"}]}],"nextquestion":2,"show":true},{"question":"Why was the issue not resolved ?","fields":[{"type":"checkbox","name":"notresolved","model":"notresolved","data":[{"id":"1","model":"rnotresolved1","label":"Customer could not afford the repair"},{"id":"2","model":"rnotresolved2","label":"Customer does not want item repaired "},{"id":"3","model":"rnotresolved3","label":"Customer does not think the issue to be serious"},{"id":"4","model":"rnotresolved4","label":"Customer stated they intend to replace the entire door in near future"},{"id":"5","model":"rnotresolved5","label":"Was unable to contact a decision maker about the issue"}]}],"nextquestion":3,"show":false},{"question":"Was Customer presented with written documentation of the issue or was documentation left on site?","fields":[{"type":"radio","name":"presented","model":"presented","data":[{"id":"1","label":"Yes"},{"id":"2","label":"No","options":[{"name":"presentedreason","placeholder":"Describe why not in detail","type":"text","model":"presentedreason"}]}]}],"nextquestion":4,"show":false},{"question":"Are pictures of the issue on file?","fields":[{"type":"radio","name":"pictures","model":"pictures","data":[{"id":"1","label":"Yes"},{"id":"2","label":"No","options":[{"name":"picturesreason","placeholder":"Why not","type":"text","model":"picturesreason"}]}]}],"finish":true,"show":false}]
				// };
				
				// var checklists = [checklist1,checklist2,checklist3,checklist4,checklist5,checklist6,checklist7,checklist8,checklist9,checklist10];
			var checklist1 = {"id":1,"title":"Reminders Page","questions":[{"question":"Did you Clean Up the Jobsite?","fields":[{"type":"radio","name":"cleanjobsite","model":"cleanjobsite","data":[{"id":"1","label":"Yes"},{"id":"2","label":"No"}]}],"show":true},{"question":"Did you put up a Sticker?","fields":[{"type":"radio","name":"sticker","model":"sticker","data":[{"id":"1","label":"Yes"},{"id":"2","label":"No"}]}],"show":true},{"question":"Did you collect all of your Tools?","fields":[{"type":"radio","name":"tools","model":"tools","data":[{"id":"1","label":"Yes"},{"id":"2","label":"No"}]}],"show":true},{"question":"Did you ask for a Review?","fields":[{"type":"radio","name":"review","model":"review","data":[{"id":"1","label":"Yes"},{"id":"2","label":"No"}]}],"show":true},{"question":"Did you enter Appointment Notes?","fields":[{"type":"radio","name":"appnotes","model":"appnotes","data":[{"id":"1","label":"Yes"},{"id":"2","label":"No"}]}],"show":true}]};
			var checklist2 = {"id":2,"title":"Suggested Items","questions":[{"question":"Were there items you suggested that were not purchased?","fields":[{"type":"select","name":"purchased","model":"purchased","data":[{"id":"1","label":"Yes - Decision Maker not Present"},{"id":"2","label":"Yes - Price Shopping"},{"id":"3","label":"Yes - Doesn't believe it's needed"},{"id":"4","label":"Yes - Planning on Replacing Door"},{"id":"5","label":"Yes - Selling Home"},{"id":"6","label":"Yes - Cannot afford at this time"},{"id":"7","label":"Yes - Other"},{"id":"8","label":"No - I sold everything I pitched"},{"id":"9","label":"No - Warranty, Install, Courtesy Visit, etc."}]}],"show":true}]};
			var checklist3 = {"id":3,"title":"Safety/Quality","questions":[{"question":"Is there a safety or quality issue?","fields":[{"type":"select","name":"issue","model":"issue","data":[{"id":"1","label":"Yes"},{"id":"2","label":"No"}]}],"show":true}]};
			var checklist4 = {"id":4,"title":"Return Trip","questions":[{"question":"Is a return trip required?","fields":[{"type":"select","name":"returntrip","model":"returntrip","data":[{"id":"1","label":"Yes - we have a date and time"},{"id":"2","label":"Yes - DO NOT have a date/time"},{"id":"3","label":"No - Return Trip Not Needed"}]}],"show":true}]};
			var checklist5 = {"id":5,"title":"Return Trip Required - "};

			var checklists = [checklist1,checklist2,checklist3,checklist4,checklist5];
			return _.findWhere(checklists,{id:id});
		},
		save:function(checklistsData){
			return $http({method:'POST',
							url:url_server+'checklists',
							data:checklistsData});
		},
		update:function(id, checklistsData){
			return $http.put(url_server+'checklists/'+id,checklistsData);
		},
		destroy:function(id){
			return $http.delete(url_server + 'checklists/'+id);
		}
	};
});
