 
   $scope.submit = ->
     OrderCycle.update()
-
-
-app.config ($httpProvider) ->
+  ]
+
+app.config ['$httpProvider', ($httpProvider) ->
   $httpProvider.defaults.headers.common['X-CSRF-Token'] = $('meta[name=csrf-token]').attr('content')
-
-app.factory 'OrderCycle', ($resource, $window) ->
+  ]
+
+app.factory 'OrderCycle', ['$resource', '$window', ($resource, $window) ->
   OrderCycle = $resource '/admin/order_cycles/:order_cycle_id.json', {}, {
     'index':  { method: 'GET', isArray: true}
 		'create': { method: 'POST'}

        numVariants += if product.variants.length == 0 then 1 else product.variants.length

      numVariants
  }


app.directive 'datetimepicker', ['$parse', ($parse) ->


  $scope.submit = ->
    OrderCycle.create()
  ]

app.controller 'AdminEditOrderCycleCtrl', ['$scope', '$location', 'OrderCycle', 'Enterprise', ($scope, $location, OrderCycle, Enterprise) ->
  $scope.enterprises = Enterprise.index()
  $scope.supplied_products = Enterprise.supplied_products

