text: function __processArg(e,i){var t=null;return e&&(t=e[i]||null,delete e[i]),t}function Controller(){function e(){goTo("lista_pedido")}function i(){goTo("lista_produtos")}function t(){goTo("seleciona_cliente")}function o(){if("android"==Ti.Platform.osname){var e=Ti.Android.createIntent({action:Ti.Android.ACTION_VIEW,data:"http://marcas.e-catalogos.net"});Ti.Android.currentActivity.startActivity(e)}else Ti.Platform.openURL("http://marcas.e-catalogos.net")}function a(){goTo("suporte")}function l(){goTo("perguntas")}function d(){}function r(){goTo("lista_video")}function s(){var e=Titanium.UI.createEmailDialog();return e.isSupported()?(e.setSubject("Suporte Aplicativo E-Catálogos"),e.setToRecipients(["suporte@e-catalogos.net"]),e.setMessageBody(""),e.setHtml(!1),void e.addEventListener("complete",function(i){i.result==e.SENT?"android"!=Ti.Platform.osname&&alert("message enviado"):alert("message não foi enviado!")})):void Ti.UI.createAlertDialog({title:"Error",message:"Email não disponível nesse dispositivo"}).show()}function n(){goTo("lista_notificacao")}function c(){goTo("sincronizacao")}function I(){goTo("lista_clientes")}require("alloy/controllers/BaseController").apply(this,Array.prototype.slice.call(arguments)),this.__controllerPath="funcao",this.args=arguments[0]||{},arguments[0]&&(__processArg(arguments[0],"__parentSymbol"),__processArg(arguments[0],"$model"),__processArg(arguments[0],"__itemTemplate"));var h=this,w={},f={};h.__views.funcao=Ti.UI.createWindow({backgroundColor:"#ffffff",id:"funcao"}),h.__views.funcao&&h.addTopLevelView(h.__views.funcao),h.__views.__alloyId744=Ti.UI.createView({height:"10%",top:"0",width:"100%",id:"__alloyId744"}),h.__views.funcao.add(h.__views.__alloyId744),h.__views.__alloyId745=Ti.UI.createButton({backgroundColor:"#ffffff",color:"#000000",right:"10",title:"FUNÇÕES",id:"__alloyId745"}),h.__views.__alloyId744.add(h.__views.__alloyId745),h.__views.__alloyId746=Ti.UI.createImageView({left:"10",id:"__alloyId746"}),h.__views.__alloyId744.add(h.__views.__alloyId746),h.__views.__alloyId747=Ti.UI.createView({height:"90%",top:"10%",width:"100%",id:"__alloyId747"}),h.__views.funcao.add(h.__views.__alloyId747),h.__views.__alloyId748=Ti.UI.createImageView({image:"/images/funcao_pedido.jpg",height:"auto",left:"0%",top:"0%",width:"25%",id:"__alloyId748"}),h.__views.__alloyId747.add(h.__views.__alloyId748),e?h.__views.__alloyId748.addEventListener("click",e):f["$.__views.__alloyId748!click!goToListaPedido"]=!0,h.__views.__alloyId749=Ti.UI.createImageView({image:"/images/funcao_produto.jpg",height:"auto",left:"25%",top:"0%",width:"25%",id:"__alloyId749"}),h.__views.__alloyId747.add(h.__views.__alloyId749),i?h.__views.__alloyId749.addEventListener("click",i):f["$.__views.__alloyId749!click!goToProdutos"]=!0,h.__views.__alloyId750=Ti.UI.createImageView({image:"/images/funcao_cliente.jpg",height:"auto",left:"50%",top:"0%",width:"25%",id:"__alloyId750"}),h.__views.__alloyId747.add(h.__views.__alloyId750),I?h.__views.__alloyId750.addEventListener("click",I):f["$.__views.__alloyId750!click!goToClientes"]=!0,h.__views.__alloyId751=Ti.UI.createImageView({image:"/images/funcao_sincronizacao.jpg",height:"auto",left:"75%",top:"0%",width:"25%",id:"__alloyId751"}),h.__views.__alloyId747.add(h.__views.__alloyId751),c?h.__views.__alloyId751.addEventListener("click",c):f["$.__views.__alloyId751!click!goToSync"]=!0,h.__views.__alloyId752=Ti.UI.createImageView({image:"/images/funcao_notificacao.jpg",height:"auto",left:"0%",width:"25%",id:"__alloyId752"}),h.__views.__alloyId747.add(h.__views.__alloyId752),n?h.__views.__alloyId752.addEventListener("click",n):f["$.__views.__alloyId752!click!goToNotificacao"]=!0,h.__views.__alloyId753=Ti.UI.createImageView({image:"/images/funcao_email.jpg",height:"auto",left:"25%",width:"25%",id:"__alloyId753"}),h.__views.__alloyId747.add(h.__views.__alloyId753),s?h.__views.__alloyId753.addEventListener("click",s):f["$.__views.__alloyId753!click!goToEmail"]=!0,h.__views.__alloyId754=Ti.UI.createImageView({image:"/images/funcao_video.jpg",height:"auto",left:"50%",width:"25%",id:"__alloyId754"}),h.__views.__alloyId747.add(h.__views.__alloyId754),r?h.__views.__alloyId754.addEventListener("click",r):f["$.__views.__alloyId754!click!goToVideo"]=!0,h.__views.__alloyId755=Ti.UI.createImageView({image:"/images/funcao_relatorio.jpg",height:"auto",left:"75%",width:"25%",id:"__alloyId755"}),h.__views.__alloyId747.add(h.__views.__alloyId755),d?h.__views.__alloyId755.addEventListener("click",d):f["$.__views.__alloyId755!click!goToRelatorio"]=!0,h.__views.__alloyId756=Ti.UI.createImageView({image:"/images/funcao_duvida.jpg",bottom:"0%",height:"auto",left:"0%",width:"25%",id:"__alloyId756"}),h.__views.__alloyId747.add(h.__views.__alloyId756),l?h.__views.__alloyId756.addEventListener("click",l):f["$.__views.__alloyId756!click!goToDuvida"]=!0,h.__views.__alloyId757=Ti.UI.createImageView({image:"/images/funcao_suporte.jpg",bottom:"0%",height:"auto",left:"25%",width:"25%",id:"__alloyId757"}),h.__views.__alloyId747.add(h.__views.__alloyId757),a?h.__views.__alloyId757.addEventListener("click",a):f["$.__views.__alloyId757!click!goToSuporte"]=!0,h.__views.__alloyId758=Ti.UI.createImageView({image:"/images/funcao_online.jpg",bottom:"0%",height:"auto",left:"50%",width:"25%",id:"__alloyId758"}),h.__views.__alloyId747.add(h.__views.__alloyId758),o?h.__views.__alloyId758.addEventListener("click",o):f["$.__views.__alloyId758!click!goToOnline"]=!0,h.__views.__alloyId759=Ti.UI.createImageView({image:"/images/funcao_offline.jpg",bottom:"0%",height:"auto",left:"75%",width:"25%",id:"__alloyId759"}),h.__views.__alloyId747.add(h.__views.__alloyId759),t?h.__views.__alloyId759.addEventListener("click",t):f["$.__views.__alloyId759!click!goToOffline"]=!0,w.destroy=function(){},_.extend(h,h.__views),Ti.include("/api/config.js"),f["$.__views.__alloyId748!click!goToListaPedido"]&&h.__views.__alloyId748.addEventListener("click",e),f["$.__views.__alloyId749!click!goToProdutos"]&&h.__views.__alloyId749.addEventListener("click",i),f["$.__views.__alloyId750!click!goToClientes"]&&h.__views.__alloyId750.addEventListener("click",I),f["$.__views.__alloyId751!click!goToSync"]&&h.__views.__alloyId751.addEventListener("click",c),f["$.__views.__alloyId752!click!goToNotificacao"]&&h.__views.__alloyId752.addEventListener("click",n),f["$.__views.__alloyId753!click!goToEmail"]&&h.__views.__alloyId753.addEventListener("click",s),f["$.__views.__alloyId754!click!goToVideo"]&&h.__views.__alloyId754.addEventListener("click",r),f["$.__views.__alloyId755!click!goToRelatorio"]&&h.__views.__alloyId755.addEventListener("click",d),f["$.__views.__alloyId756!click!goToDuvida"]&&h.__views.__alloyId756.addEventListener("click",l),f["$.__views.__alloyId757!click!goToSuporte"]&&h.__views.__alloyId757.addEventListener("click",a),f["$.__views.__alloyId758!click!goToOnline"]&&h.__views.__alloyId758.addEventListener("click",o),f["$.__views.__alloyId759!click!goToOffline"]&&h.__views.__alloyId759.addEventListener("click",t),_.extend(h,w)}var Alloy=require("alloy"),Backbone=Alloy.Backbone,_=Alloy._;module.exports=Controller;