  # # MainCtrl
  # Controller of the gummyApp
 ###
-remote = require "remote"
-app = remote.require("app")
-Datastore = remote.require "nedb"
-
 angular.module 'gummyApp'
     .controller 'MainCtrl', ($scope, $rootScope, $timeout, $q, $trakt, $rotten) ->
 

         # @param {Object} movie
        ###
        $scope.open_movie = (movie) ->
            $trakt
                .get movie.id, movie
                .then (data) ->
                    $rootScope.selected = data
                .catch (e) ->
                    console.error e


        ###*

'use strict'

remote = require "remote"
app = remote.require("app")
Datastore = remote.require "nedb"

###*
 # @ngdoc function
