Esempio n. 1
0
 public CoreDataController(
     IUsersService usersService,
     IDepartmentsService departmentsService,
     IUserProfileService userProfileService,
     IUnitsService unitsService,
     IDepartmentGroupsService departmentGroupsService,
     IPersonnelRolesService personnelRolesService,
     ICustomStateService customStateService,
     IPermissionsService permissionsService,
     ICallsService callsService,
     IFirebaseService firebaseService,
     IDepartmentSettingsService departmentSettingsService
     )
 {
     _usersService              = usersService;
     _departmentsService        = departmentsService;
     _userProfileService        = userProfileService;
     _unitsService              = unitsService;
     _departmentGroupsService   = departmentGroupsService;
     _personnelRolesService     = personnelRolesService;
     _customStateService        = customStateService;
     _permissionsService        = permissionsService;
     _callsService              = callsService;
     _firebaseService           = firebaseService;
     _departmentSettingsService = departmentSettingsService;
 }
Esempio n. 2
0
 public DepartmentController(
     ICallsService callsService, IDepartmentGroupsService departmentGroupsService, IDepartmentSettingsService departmentSettingsService)
 {
     _callsService              = callsService;
     _departmentGroupsService   = departmentGroupsService;
     _departmentSettingsService = departmentSettingsService;
 }
Esempio n. 3
0
 public GeoService(IGeoLocationProvider geoLocationProvider, ICallsService callsService, IDepartmentGroupsService departmentGroupsService, IAddressService addressService)
 {
     _geoLocationProvider     = geoLocationProvider;
     _callsService            = callsService;
     _departmentGroupsService = departmentGroupsService;
     _addressService          = addressService;
 }
Esempio n. 4
0
 public HomeController(IDepartmentsService departmentsService, IUsersService usersService, IActionLogsService actionLogsService,
                       IUserStateService userStateService, IDepartmentGroupsService departmentGroupsService, Resgrid.Model.Services.IAuthorizationService authorizationService,
                       IUserProfileService userProfileService, ICallsService callsService, IGeoLocationProvider geoLocationProvider, IDepartmentSettingsService departmentSettingsService,
                       IUnitsService unitsService, IAddressService addressService, IPersonnelRolesService personnelRolesService, IPushService pushService, ILimitsService limitsService,
                       ICustomStateService customStateService, IEventAggregator eventAggregator, IOptions <AppOptions> appOptionsAccessor, UserManager <IdentityUser> userManager)
 {
     _departmentsService        = departmentsService;
     _usersService              = usersService;
     _actionLogsService         = actionLogsService;
     _userStateService          = userStateService;
     _departmentGroupsService   = departmentGroupsService;
     _authorizationService      = authorizationService;
     _userProfileService        = userProfileService;
     _callsService              = callsService;
     _geoLocationProvider       = geoLocationProvider;
     _departmentSettingsService = departmentSettingsService;
     _unitsService              = unitsService;
     _addressService            = addressService;
     _personnelRolesService     = personnelRolesService;
     _pushService        = pushService;
     _limitsService      = limitsService;
     _customStateService = customStateService;
     _eventAggregator    = eventAggregator;
     _appOptionsAccessor = appOptionsAccessor;
     _userManager        = userManager;
 }
Esempio n. 5
0
 public ImportService(IConfigService configService, IDataService dataService, Logger log, ICallsService callsService)
 {
     _configService = configService;
     _log           = log;
     _dataService   = dataService;
     _callsService  = callsService;
 }
Esempio n. 6
0
 public BigBoardController(
     IUsersService usersService,
     IActionLogsService actionLogsService,
     IDepartmentsService departmentsService,
     IUserProfileService userProfileService,
     IUserStateService userStateService,
     IUnitsService unitsService,
     ICallsService callsService,
     IDepartmentGroupsService departmentGroupsService,
     IPersonnelRolesService personnelRolesService,
     ICustomStateService customStateService,
     IDepartmentSettingsService departmentSettingsService,
     IGeoLocationProvider geoLocationProvider
     )
 {
     _usersService              = usersService;
     _actionLogsService         = actionLogsService;
     _departmentsService        = departmentsService;
     _userProfileService        = userProfileService;
     _userStateService          = userStateService;
     _unitsService              = unitsService;
     _callsService              = callsService;
     _departmentGroupsService   = departmentGroupsService;
     _personnelRolesService     = personnelRolesService;
     _customStateService        = customStateService;
     _departmentSettingsService = departmentSettingsService;
     _geoLocationProvider       = geoLocationProvider;
 }
Esempio n. 7
0
 public ProtocolsController(IProtocolsService protocolsService, ICallsService callsService, IAuthorizationService authorizationService, IDepartmentsService departmentsService)
 {
     _protocolsService     = protocolsService;
     _callsService         = callsService;
     _authorizationService = authorizationService;
     _departmentsService   = departmentsService;
 }
Esempio n. 8
0
 public UnitAppController(
     IUsersService usersService,
     IActionLogsService actionLogsService,
     IDepartmentsService departmentsService,
     IUserProfileService userProfileService,
     IWebEventPublisher webEventPublisher,
     IUserStateService userStateService,
     IUnitsService unitsService,
     ICallsService callsService,
     IDepartmentGroupsService departmentGroupsService,
     IPersonnelRolesService personnelRolesService,
     ICustomStateService customStateService,
     IGeoLocationProvider geoLocationProvider,
     ICqrsProvider cqrsProvider
     )
 {
     _usersService            = usersService;
     _actionLogsService       = actionLogsService;
     _departmentsService      = departmentsService;
     _userProfileService      = userProfileService;
     _webEventPublisher       = webEventPublisher;
     _userStateService        = userStateService;
     _unitsService            = unitsService;
     _callsService            = callsService;
     _departmentGroupsService = departmentGroupsService;
     _personnelRolesService   = personnelRolesService;
     _customStateService      = customStateService;
     _geoLocationProvider     = geoLocationProvider;
     _cqrsProvider            = cqrsProvider;
 }
Esempio n. 9
0
 public CallsController(
     ICallsService callsService,
     IDepartmentsService departmentsService,
     IUserProfileService userProfileService,
     IGeoLocationProvider geoLocationProvider,
     IAuthorizationService authorizationService,
     IQueueService queueService,
     IUsersService usersService,
     IUnitsService unitsService,
     IActionLogsService actionLogsService,
     IDepartmentGroupsService departmentGroupsService,
     IPersonnelRolesService personnelRolesService
     )
 {
     _callsService            = callsService;
     _departmentsService      = departmentsService;
     _userProfileService      = userProfileService;
     _geoLocationProvider     = geoLocationProvider;
     _authorizationService    = authorizationService;
     _queueService            = queueService;
     _usersService            = usersService;
     _unitsService            = unitsService;
     _actionLogsService       = actionLogsService;
     _departmentGroupsService = departmentGroupsService;
     _personnelRolesService   = personnelRolesService;
 }
Esempio n. 10
0
 public DispatchController(
     IUsersService usersService,
     IActionLogsService actionLogsService,
     IDepartmentsService departmentsService,
     IUserProfileService userProfileService,
     IUserStateService userStateService,
     IUnitsService unitsService,
     ICallsService callsService,
     IDepartmentGroupsService departmentGroupsService,
     IPersonnelRolesService personnelRolesService,
     ICustomStateService customStateService,
     IGeoLocationProvider geoLocationProvider,
     ICqrsProvider cqrsProvider,
     IDepartmentSettingsService departmentSettingsService,
     ITemplatesService templatesService
     )
 {
     _usersService              = usersService;
     _actionLogsService         = actionLogsService;
     _departmentsService        = departmentsService;
     _userProfileService        = userProfileService;
     _userStateService          = userStateService;
     _unitsService              = unitsService;
     _callsService              = callsService;
     _departmentGroupsService   = departmentGroupsService;
     _personnelRolesService     = personnelRolesService;
     _customStateService        = customStateService;
     _geoLocationProvider       = geoLocationProvider;
     _cqrsProvider              = cqrsProvider;
     _departmentSettingsService = departmentSettingsService;
     _templatesService          = templatesService;
 }
Esempio n. 11
0
 public EmailController(IDepartmentSettingsService departmentSettingsService, INumbersService numbersService,
                        ILimitsService limitsService, ICallsService callsService, IQueueService queueService, IDepartmentsService departmentsService,
                        IUserProfileService userProfileService, ITextCommandService textCommandService, IActionLogsService actionLogsService,
                        IUserStateService userStateService, ICommunicationService communicationService, IDistributionListsService distributionListsService,
                        IUsersService usersService, IEmailService emailService, IDepartmentGroupsService departmentGroupsService, IMessageService messageService,
                        IFileService fileService, IUnitsService unitsService)
 {
     _departmentSettingsService = departmentSettingsService;
     _numbersService            = numbersService;
     _limitsService             = limitsService;
     _callsService             = callsService;
     _queueService             = queueService;
     _departmentsService       = departmentsService;
     _userProfileService       = userProfileService;
     _textCommandService       = textCommandService;
     _actionLogsService        = actionLogsService;
     _userStateService         = userStateService;
     _communicationService     = communicationService;
     _distributionListsService = distributionListsService;
     _usersService             = usersService;
     _emailService             = emailService;
     _departmentGroupsService  = departmentGroupsService;
     _messageService           = messageService;
     _fileService  = fileService;
     _unitsService = unitsService;
 }
Esempio n. 12
0
 public TypesController(IUnitsService unitsService, ICustomStateService customStateService, ICallsService callsService, IAudioValidatorProvider audioValidatorProvider)
 {
     _unitsService           = unitsService;
     _customStateService     = customStateService;
     _callsService           = callsService;
     _audioValidatorProvider = audioValidatorProvider;
 }
Esempio n. 13
0
 public TypesController(IUnitsService unitsService, ICustomStateService customStateService, ICallsService callsService, IAudioValidatorProvider audioValidatorProvider,
                        IDepartmentSettingsService departmentSettingsService)
 {
     _unitsService              = unitsService;
     _customStateService        = customStateService;
     _callsService              = callsService;
     _audioValidatorProvider    = audioValidatorProvider;
     _departmentSettingsService = departmentSettingsService;
 }
Esempio n. 14
0
        public TopIconsModel()
        {
            if (_messageService == null)
            {
                _messageService = WebBootstrapper.GetKernel().Resolve <IMessageService>();
            }

            if (_callsService == null)
            {
                _callsService = WebBootstrapper.GetKernel().Resolve <ICallsService>();
            }
        }
Esempio n. 15
0
 public WorkLogsService(ILogsRepository logsRepository, ICallLogsRepository callLogsRepository, ILogUsersRepository logUsersRepository,
                        ILogAttachmentRepository logAttachmentRepository, ILogUnitsRepository logUnitsRepository, IDepartmentsService departmentsService,
                        IDepartmentGroupsService departmentGroupsService, ICallsService callsService)
 {
     _logsRepository          = logsRepository;
     _callLogsRepository      = callLogsRepository;
     _logUsersRepository      = logUsersRepository;
     _logAttachmentRepository = logAttachmentRepository;
     _logUnitsRepository      = logUnitsRepository;
     _departmentsService      = departmentsService;
     _departmentGroupsService = departmentGroupsService;
     _callsService            = callsService;
 }
Esempio n. 16
0
        public void PopulateQueue()
        {
            if (!_isLocked)
            {
                _isLocked = true;

                Task t1 = new Task(async() =>
                {
                    try
                    {
                        if (Config.SystemBehaviorConfig.IsAzure)
                        {
                            _queue.Enqueue(new CallQueueItem());
                        }
                        else
                        {
                            _callsService       = Bootstrapper.GetKernel().Resolve <ICallsService>();
                            _queueService       = Bootstrapper.GetKernel().Resolve <IQueueService>();
                            _userProfileService = Bootstrapper.GetKernel().Resolve <IUserProfileService>();

                            var items = await _queueService.DequeueAsync(QueueTypes.CallBroadcast);

                            foreach (var i in items)
                            {
                                var cqi       = new CallQueueItem();
                                cqi.QueueItem = i;
                                cqi.Call      = await _callsService.GetCallByIdAsync(int.Parse(i.SourceId));
                                cqi.Profiles  = await _userProfileService.GetSelectedUserProfilesAsync(cqi.Call.Dispatches.Select(x => x.UserId).ToList());

                                _queue.Enqueue(cqi);
                            }
                        }
                    }
                    catch (Exception ex)
                    {
                        Logging.LogException(ex);
                    }
                    finally
                    {
                        _isLocked = false;
                        _cleared  = false;

                        _callsService       = null;
                        _queueService       = null;
                        _userProfileService = null;
                    }
                });

                t1.Start();
            }
        }
Esempio n. 17
0
 /// <summary>
 /// Operations to perform against the department links system. Department Links allow departments to
 /// share data to other departments, for example calls or resource orders.
 /// </summary>
 public LinksController(IDepartmentsService departmentsService, IDepartmentLinksService departmentLinksService, ILimitsService limitsService,
                        ICallsService callsService, IUserProfileService userProfileService, IGeoLocationProvider geoLocationProvider, IUnitsService unitsService,
                        IActionLogsService actionLogsService, IUserStateService userStateService)
 {
     _departmentsService     = departmentsService;
     _departmentLinksService = departmentLinksService;
     _limitsService          = limitsService;
     _callsService           = callsService;
     _userProfileService     = userProfileService;
     _geoLocationProvider    = geoLocationProvider;
     _unitsService           = unitsService;
     _actionLogsService      = actionLogsService;
     _userStateService       = userStateService;
 }
Esempio n. 18
0
 public LogsController(IDepartmentsService departmentsService, IUsersService usersService, ICallsService callsService,
                       IDepartmentGroupsService departmentGroupsService, ICommunicationService communicationService, IQueueService queueService,
                       Model.Services.IAuthorizationService authorizationService, IWorkLogsService workLogsService, IEventAggregator eventAggregator)
 {
     _departmentsService      = departmentsService;
     _usersService            = usersService;
     _callsService            = callsService;
     _departmentGroupsService = departmentGroupsService;
     _communicationService    = communicationService;
     _queueService            = queueService;
     _authorizationService    = authorizationService;
     _workLogsService         = workLogsService;
     _eventAggregator         = eventAggregator;
 }
Esempio n. 19
0
 public LinksController(IDepartmentLinksService departmentLinksService, IDepartmentsService departmentsService, IEmailService emailService,
                        ICallsService callsService, IUnitsService unitsService, IActionLogsService actionLogsService, IDepartmentGroupsService departmentGroupsService,
                        IUserStateService userStateService, IPersonnelRolesService personnelRolesService, ILimitsService limitsService)
 {
     _departmentLinksService  = departmentLinksService;
     _departmentsService      = departmentsService;
     _emailService            = emailService;
     _callsService            = callsService;
     _unitsService            = unitsService;
     _actionLogsService       = actionLogsService;
     _departmentGroupsService = departmentGroupsService;
     _userStateService        = userStateService;
     _personnelRolesService   = personnelRolesService;
     _limitsService           = limitsService;
 }
Esempio n. 20
0
 public UnitsController(IDepartmentsService departmentsService, IUsersService usersService, IUnitsService unitsService, Model.Services.IAuthorizationService authorizationService,
                        ILimitsService limitsService, IDepartmentGroupsService departmentGroupsService, ICallsService callsService, IEventAggregator eventAggregator, ICustomStateService customStateService,
                        IGeoService geoService)
 {
     _departmentsService      = departmentsService;
     _usersService            = usersService;
     _unitsService            = unitsService;
     _authorizationService    = authorizationService;
     _limitsService           = limitsService;
     _departmentGroupsService = departmentGroupsService;
     _callsService            = callsService;
     _eventAggregator         = eventAggregator;
     _customStateService      = customStateService;
     _geoService = geoService;
 }
Esempio n. 21
0
 public TextMessagesController(IDepartmentSettingsService departmentSettingsService, INumbersService numbersService,
                               ILimitsService limitsService, ICallsService callsService, IQueueService queueService, IDepartmentsService departmentsService,
                               IUserProfileService userProfileService, ITextCommandService textCommandService, IActionLogsService actionLogsService,
                               IUserStateService userStateService, ICommunicationService communicationService)
 {
     _departmentSettingsService = departmentSettingsService;
     _numbersService            = numbersService;
     _limitsService             = limitsService;
     _callsService         = callsService;
     _queueService         = queueService;
     _departmentsService   = departmentsService;
     _userProfileService   = userProfileService;
     _textCommandService   = textCommandService;
     _actionLogsService    = actionLogsService;
     _userStateService     = userStateService;
     _communicationService = communicationService;
 }
Esempio n. 22
0
 public CallPrioritiesController(
     ICallsService callsService,
     IDepartmentsService departmentsService,
     IUserProfileService userProfileService,
     IGeoLocationProvider geoLocationProvider,
     IAuthorizationService authorizationService,
     IQueueService queueService,
     IUsersService usersService
     )
 {
     _callsService         = callsService;
     _departmentsService   = departmentsService;
     _userProfileService   = userProfileService;
     _geoLocationProvider  = geoLocationProvider;
     _authorizationService = authorizationService;
     _queueService         = queueService;
     _usersService         = usersService;
 }
Esempio n. 23
0
 public MappingController(IDepartmentSettingsService departmentSettingsService,
                          IGeoLocationProvider geoLocationProvider, ICallsService callsService,
                          IDepartmentsService departmentsService, IDepartmentGroupsService departmentGroupsService,
                          IActionLogsService actionLogsService, IUnitsService unitsService, IMappingService mappingService,
                          IKmlProvider kmlProvider, IPermissionsService permissionsService, IPersonnelRolesService personnelRolesService)
 {
     _departmentSettingsService = departmentSettingsService;
     _geoLocationProvider       = geoLocationProvider;
     _callsService            = callsService;
     _departmentsService      = departmentsService;
     _departmentGroupsService = departmentGroupsService;
     _actionLogsService       = actionLogsService;
     _unitsService            = unitsService;
     _mappingService          = mappingService;
     _kmlProvider             = kmlProvider;
     _permissionsService      = permissionsService;
     _personnelRolesService   = personnelRolesService;
 }
Esempio n. 24
0
 public AuthorizationService(IDepartmentsService departmentsService, IInvitesService invitesService,
                             ICallsService callsService, IMessageService messageService, IWorkLogsService workLogsService, ISubscriptionsService subscriptionsService,
                             IDepartmentGroupsService departmentGroupsService, IPersonnelRolesService personnelRolesService, IUnitsService unitsService,
                             IPermissionsService permissionsService, ICalendarService calendarService, IProtocolsService protocolsService)
 {
     _departmentsService      = departmentsService;
     _invitesService          = invitesService;
     _callsService            = callsService;
     _messageService          = messageService;
     _workLogsService         = workLogsService;
     _subscriptionsService    = subscriptionsService;
     _departmentGroupsService = departmentGroupsService;
     _personnelRolesService   = personnelRolesService;
     _unitsService            = unitsService;
     _permissionsService      = permissionsService;
     _calendarService         = calendarService;
     _protocolsService        = protocolsService;
 }
Esempio n. 25
0
        public void SetMessages(string userId, int departmentId)
        {
            // Trying to speed this up (may need to ditch it all together) but at times
            // this is a big hit on NewRelic, most likely because it's constructing the
            // message and call service every time. It's not an ideal solution, but hopefully
            // it will help for a bit.
            try
            {
                NewMessages = _messageService.GetUnreadMessagesCountByUserId(userId);
                NewCalls    = _callsService.GetActiveCallsForDepartment(departmentId);
            }
            catch (Exception)
            {
                _messageService = WebBootstrapper.GetKernel().Resolve <IMessageService>();
                _callsService   = WebBootstrapper.GetKernel().Resolve <ICallsService>();

                NewMessages = _messageService.GetUnreadMessagesCountByUserId(userId);
                NewCalls    = _callsService.GetActiveCallsForDepartment(departmentId);
            }
        }
Esempio n. 26
0
 public MessagesController(
     ICallsService callsService,
     IDepartmentsService departmentsService,
     IUserProfileService userProfileService,
     IGeoLocationProvider geoLocationProvider,
     IAuthorizationService authorizationService,
     IMessageService messageService,
     IUsersService usersService,
     IDepartmentGroupsService departmentGroupsService,
     IPersonnelRolesService personnelRolesService)
 {
     _callsService            = callsService;
     _departmentsService      = departmentsService;
     _userProfileService      = userProfileService;
     _geoLocationProvider     = geoLocationProvider;
     _authorizationService    = authorizationService;
     _messageService          = messageService;
     _usersService            = usersService;
     _departmentGroupsService = departmentGroupsService;
     _personnelRolesService   = personnelRolesService;
 }
Esempio n. 27
0
 public TwilioProviderController(IDepartmentSettingsService departmentSettingsService, INumbersService numbersService,
                                 ILimitsService limitsService, ICallsService callsService, IQueueService queueService, IDepartmentsService departmentsService,
                                 IUserProfileService userProfileService, ITextCommandService textCommandService, IActionLogsService actionLogsService,
                                 IUserStateService userStateService, ICommunicationService communicationService, IGeoLocationProvider geoLocationProvider,
                                 IDepartmentGroupsService departmentGroupsService, ICustomStateService customStateService, IUnitsService unitsService)
 {
     _departmentSettingsService = departmentSettingsService;
     _numbersService            = numbersService;
     _limitsService             = limitsService;
     _callsService            = callsService;
     _queueService            = queueService;
     _departmentsService      = departmentsService;
     _userProfileService      = userProfileService;
     _textCommandService      = textCommandService;
     _actionLogsService       = actionLogsService;
     _userStateService        = userStateService;
     _communicationService    = communicationService;
     _geoLocationProvider     = geoLocationProvider;
     _departmentGroupsService = departmentGroupsService;
     _customStateService      = customStateService;
     _unitsService            = unitsService;
 }
Esempio n. 28
0
 public DeleteService(IAuthorizationService authorizationService, IDepartmentsService departmentsService,
                      ICallsService callsService, IActionLogsService actionLogsService, IUsersService usersService,
                      IUserProfileService userProfileService, IMessageService messageService, IDepartmentGroupsService departmentGroupsService,
                      IWorkLogsService workLogsService, IUserStateService userStateService, IPersonnelRolesService personnelRolesService, IDistributionListsService distributionListsService,
                      IShiftsService shiftsService, IUnitsService unitsService, ICertificationService certificationService, ILogService logService)
 {
     _authorizationService     = authorizationService;
     _departmentsService       = departmentsService;
     _callsService             = callsService;
     _actionLogsService        = actionLogsService;
     _usersService             = usersService;
     _userProfileService       = userProfileService;
     _messageService           = messageService;
     _departmentGroupsService  = departmentGroupsService;
     _workLogsService          = workLogsService;
     _userStateService         = userStateService;
     _personnelRolesService    = personnelRolesService;
     _distributionListsService = distributionListsService;
     _shiftsService            = shiftsService;
     _unitsService             = unitsService;
     _certificationService     = certificationService;
     _logService = logService;
 }
Esempio n. 29
0
 public CommandAppController(
     IUsersService usersService,
     IDepartmentsService departmentsService,
     IUserProfileService userProfileService,
     IUnitsService unitsService,
     ICallsService callsService,
     IDepartmentGroupsService departmentGroupsService,
     IPersonnelRolesService personnelRolesService,
     ICustomStateService customStateService,
     IGeoLocationProvider geoLocationProvider,
     IIncidentService incidentService
     )
 {
     _usersService            = usersService;
     _departmentsService      = departmentsService;
     _userProfileService      = userProfileService;
     _unitsService            = unitsService;
     _callsService            = callsService;
     _departmentGroupsService = departmentGroupsService;
     _personnelRolesService   = personnelRolesService;
     _customStateService      = customStateService;
     _geoLocationProvider     = geoLocationProvider;
     _incidentService         = incidentService;
 }
Esempio n. 30
0
 public TemplatesController(ITemplatesService templatesService, ICallsService callsService)
 {
     _templatesService = templatesService;
     _callsService     = callsService;
 }