(function () { 'use strict'; angular.module('app.service') .factory('searchBridge', ['$q', 'AbstractBridge', function ($q, AbstractBridge) { var SearchBridge = function (options) { AbstractBridge.call(this, options); this.controller = 'search'; }; SearchBridge.prototype = _.create(AbstractBridge.prototype); SearchBridge.prototype.constructor = SearchBridge; SearchBridge.prototype.tagList = function (tagList, sortAttributeId) { var params = {tagList: tagList}; if (sortAttributeId) params.sortAttributeId = sortAttributeId; return this.post('tag-list', params); }; return new SearchBridge(); }]); })();