'use strict'

angular.module('myHR').controller('QuestionUtility', ['$scope', '$http', '$sce' , 'SwapLang', function($scope, $http, $sce, SwapLang){

  $scope.swlang = SwapLang

  $scope.getLinkPicture = function(picture){
    let path = ''
    if (picture !== undefined){
      path = $sce.trustAsResourceUrl(`../EXAM/${viewproperty.images}/${picture}`)
    }

    return path
  }

  $scope.getLinkAudio = function(audio){
    let path = ''
    if (audio !== undefined){
      path = $sce.trustAsResourceUrl(`../EXAM/${viewproperty.audio}/${audio}`)
    }

    return path
  }

  $scope.getLinkVideo = function(video){
    return $sce.trustAsResourceUrl(video)
  }
}])