1 (function (GCN) {
  2 
  3 	'use strict';
  4 
  5 	/**
  6 	 * @TODO (petro): Where is this constant used.  Can it be removed?
  7 	 *
  8 	 * @const
  9 	 * @type {number}
 10 	 */
 11 	var TYPE_ID = 10011;
 12 
 13 	/**
 14 	 * @private
 15 	 * @const
 16 	 * @type {object.<string, boolean>} Default image settings.
 17 	 */
 18 	var DEFAULT_SETTINGS = {
 19 		// Load image for updating
 20 		update: true
 21 	};
 22 
 23 	/**
 24 	 * @class ImageAPI
 25 	 */
 26 	var ImageAPI = GCN.defineChainback({
 27 
 28 		__chainbacktype__: 'ImageAPI',
 29 		_extends: GCN.FileAPI,
 30 		_type: 'image',
 31 
 32 		/**
 33 		 * writable properties for the page object
 34 		 */
 35 		WRITEABLE_PROPS: ['cdate',
 36 		                  'description',
 37 		                  'folderId', // @TODO Check if moving is implemented
 38 		                              // correctly.
 39 		                  'name' ],
 40 
 41 		/**
 42 		 * @see ContentObjectAPI.!_loadParams
 43 		 */
 44 		'!_loadParams': function () {
 45 			return jQuery.extend(DEFAULT_SETTINGS, this._settings);
 46 		}
 47 	});
 48 
 49 	GCN.image = GCN.exposeAPI(ImageAPI);
 50 	GCN.ImageAPI = ImageAPI;
 51 
 52 }(GCN));
 53