text: /**
   * Created by xubt on 11/9/16.
   */
  kanbanApp.factory('tagsService', ['$http', '$q', 'httpServices',
      function ($http, $q, httpServices) {
          return {
              loadTagsByBoard: function (_link) {
                  return httpServices.get(_link);
              },
              loadBoardByLink: function (_boardLink) {
                  return httpServices.get(_boardLink);
              },
              createTag: function (_tag, _tagsLink) {
                  return httpServices.post(_tag, _tagsLink);
              },
              update: function (_tag) {
                  return httpServices.put(_tag, _tag._links.self.href);
              },
              deleteTag: function (_tag) {
                  return httpServices.delete(_tag._links.self.href);
              },
              cloneTags: function (sourceBoardId, _link) {
                  return httpServices.postWithNoPayLoad(_link + sourceBoardId);
              }
          };
      }]);
  