Api =
	enabled 		: true
	app_id 			: '528495b81d8a0c3130000000_5zjgq5bllucc4ok88404occgcgsckswcc40g8ggs08ckswc4kw'
	redirect_uri 	: "http://local.blogvio.com/connect/blogvio.html"

	###
	Runs a callback with the API disabled

	This allows changes to models without triggering persist
	###
	disable : (callback) ->
		if @enabled
			@enabled = false
			try
				do callback
			catch e
				throw e
			finally
				@enabled = true
		else
			do callback

module.exports = Api