import angular from 'angular';
import uibootstrap from 'angular-ui-bootstrap';
import angulartranslate from 'angular-translate';

import config from './xivo.config';
import run from './xivo.run';

/*Module dependencies */
import IpbxUsersController from './controllers/ipbx/users.controller';
import IpbxVoicemailsController from './controllers/ipbx/voicemails.controller';
import CCAgentsController from './controllers/callcenter/agents.controller';
import CCQueuesController from './controllers/callcenter/queues.controller';
import toolbar from './services/toolbar.service';
import toolbarButtons from './directives/toolbarButtons.directive';
import toolbarSearch from './directives/toolbarSearch.directive';
import onFinishRender from './directives/onFinishRender.directive';
import breadcrumb from './directives/breadcrumb.directive';


angular.module('Xivo', [angulartranslate, uibootstrap])
.config(config)
.service('toolbar',toolbar)
.controller('IpbxUsersController', IpbxUsersController)
.controller('IpbxVoicemailsController', IpbxVoicemailsController)
.controller('CCAgentsController', CCAgentsController)
.controller('CCQueuesController', CCQueuesController)
.directive('toolbarButtons',toolbarButtons)
.directive('toolbarSearch',toolbarSearch)
.directive('onFinishRender',onFinishRender)
.directive('breadcrumb',breadcrumb)
.run(run);
