 import CloudFoundryEnv
 import KituraBot
 import KituraBotFacebookMessenger
+import KituraBotMobileAPI
 //import CloudFoundryDeploymentTracker
 
 // Disable all buffering of stdout

do {
    //2.1 Add Facebook Messenger channel
    try bot.addChannel(channelName: "FacebookEcho", channel: KituraBotFacebookMessenger(appSecret: Configuration.appSecret, validationToken: Configuration.validationToken, pageAccessToken: Configuration.pageAccessToken, webHookPath: "/webhook"))
    
    //2.1 Add Slack, Skype etc. channels
    //try bot.addChannel(channelName: "SlackEcho1", KituraBotSlack(slackConfig: "xxx", webHookPath: "/echo1slackcommand"))
    //try bot.addChannel(channelName: "SkypeEcho1", KituraBotSkype(skypeConfig: "xxx", webHookPath: "/echo1skypewebhook"))
    
    //2.2 Add MobileApp channel (use Push Notification for Asyncronous response message
    //try bot.addChannel(channelName: "MobileAppEcho1", KituraBotMobileApp("appSecret": "yyy-yyy-yyy", "appId": "xxx-xxx-xx", apiPath: "/echo1api")))
} catch is KituraBotError {
    Log.error("Oops... something wrong on Bot Channel name")
}



//1. Instanciate KituraBot and implement BOT logic
let bot = KituraBot(router: router) { (channelName: String, senderId: String, message: String, context: [String: Any]?) -> (responseMessage: String, context: [String: Any]?)? in
    
    //1.a Implement classic Syncronous BOT logic implementation with Watson Conversation, api.ai, wit.ai or other tools
    let responseMessage = "ECHO: \(message)"
