function Controller(){function e(e){r.is("video clicked",e),Alloy.createController("videoPlayer",{url:e.source.videoUrl}).getView().open()}function i(){function e(e){r.is("videos",e);var i=void 0!==a.itemCount&&5>=a.itemCount?_.first(e.videos,a.itemCount):e.videos;_.each(i,function(e){o.videoItems.add(Alloy.createController("videoTableRow",{url:e.videos[1].video,image:e.thumb,title:e.title}).getView())}),Alloy.Globals.loading.showHide("hide")}function i(){}var t=n.signUrl(Alloy.CFG.feedUrls.videos.replace("{{page}}",s));d.getData({getUrl:t},e,i)}require("alloy/controllers/BaseController").apply(this,Array.prototype.slice.call(arguments)),this.__controllerPath="videoItems",arguments[0]?arguments[0].__parentSymbol:null,arguments[0]?arguments[0].$model:null,arguments[0]?arguments[0].__itemTemplate:null;var o=this,t={},l={};o.__views.videoItems=Ti.UI.createView({layout:"vertical",height:Ti.UI.SIZE,id:"videoItems"}),o.__views.videoItems&&o.addTopLevelView(o.__views.videoItems),e?o.__views.videoItems.addEventListener("click",e):l["$.__views.videoItems!click!videoClicked"]=!0,t.destroy=function(){},_.extend(o,o.__views);var r=require("helpers"),n=require("feedSigner"),s=1,d=require("netConnect"),a=arguments[0]||{};i(),l["$.__views.videoItems!click!videoClicked"]&&o.__views.videoItems.addEventListener("click",e),_.extend(o,t)}var Alloy=require("alloy"),Backbone=Alloy.Backbone,_=Alloy._;module.exports=Controller;