text: var app = angular.module('app', ['ui.bootstrap','iService.directive','ui.select']);
     
   app.controller('mailboxCtrl', function ($scope, $window) {
      $scope.type = 'login';
  	$scope.showOption = function (segmentName)
  	{ 
  	   $scope.type = segmentName;
  	   $scope.config = {}; 
              $scope.config.toolbarGroups = [
  			{ name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] },
  			{ name: 'clipboard', groups: [ 'clipboard', 'undo' ] },
  			{ name: 'editing', groups: [ 'find', 'selection', 'spellchecker', 'editing' ] },
  			{ name: 'forms', groups: [ 'forms' ] },
  			{ name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align', 'bidi', 'paragraph' ] },
  			{ name: 'links', groups: [ 'links' ] },
  			
  		];
  	  // alert(segmentName);
  	};
  			
  });
  
  app.controller('TopicCtrl', function ($scope, $http, $timeout, $interval) {
  var vm = this;
  vm.topicselected = {selected : "Select or search for a topic in the list ..."};
  	vm.topic = [
  	{name: 'e-shop -- All Topics',topiclevel:0, disabled: '', segment:"Segment"},
  	{name: '_Feedback',topiclevel:1, disabled: 'false', segment:"Segment"},
  	{name: '_Newsletter Subscription ',topiclevel:1, disabled: 'disabled', segment:"Segment"},
  	{name: '_Spam',topiclevel:1, disabled: '', segment:"Segment"},
  	{name: '_Undeliverable',topiclevel:1, disabled: '', segment:"Segment"},
  	{name: 'Account Questions',topiclevel:0, disabled: '', segment:"Segment"},
  	{name: 'Orders',topiclevel:1, disabled: '', segment:"Segment"},
  	{name: 'Refunds',topiclevel:1, disabled: 'disabled', segment:"Segment"},
  	{name: 'Returns',topiclevel:1, disabled: '', segment:"Segment"},
  	{name: 'Products',topiclevel:0, disabled: '', segment:"Segment"},
  	{name: 'Audio-Video',topiclevel:1, disabled: '', segment:"Segment"},
  	{name: 'Cameras',topiclevel:1, disabled: '', segment:"Segment"},
  	{name: 'Cell Phones',topiclevel:1, disabled: '', segment:"Segment"},
  	{name: 'Computers',topiclevel:1, disabled: '', segment:"Segment"},
  	{name: 'Televisions',topiclevel:1, disabled: '', segment:"Segment"},
  	{name: 'Shipping',topiclevel:1, disabled: '', segment:"Segment"},
  	{name: 'Technical Support',topiclevel:1, disabled: '', segment:"Segment"},
  	{name: 'Open Quotes',topiclevel:1, disabled: '', segment:"Segment"}
  ];
  });
  
  
  
  