ModuleService.js 1012 Bytes
var ATLAS_ANATOMY = 'Atlas Anatomy';
var CLINICAL_ILLUSTRATION = 'Clinical Illustrations';
var CLINICAL_ANIMATION = 'Clinical Animations';


AIA.factory('ModuleService', function ()
{
    var OpenedModuleList = [];
    return {
        SaveOpenedModules: function (moduleDetails)
        {
            var moduleId = moduleDetails.moduleId;
            OpenedModuleList.push(moduleId);
            OpenedModuleList.tileViewId = moduleDetails.TileViewId;
            OpenedModuleList.tileImageName = moduleDetails.imageName;
            OpenedModuleList.tileImageSRC = moduleDetails.imagePath;
            
            if (moduleId == ATLAS_ANATOMY)
            {
                console.log('AA is called')
            }
            else if(moduleId == CLINICAL_ANIMATION)
            {

            }
            else if(moduleId == CLINICAL_ILLUSTRATION)
            {

            }

            console.log('called service');
            return true;
        }
    };
});