text: define('crm/Integrations/BOE/Views/ERPSalesOrderPersons/List', ['module', 'exports', 'dojo/_base/declare', 'dojo/_base/lang', 'argos/List', 'crm/Views/_RightDrawerListMixin', 'crm/Views/_MetricListMixin', '../../Models/Names', 'argos/I18n'], function (module, exports, _declare, _lang, _List, _RightDrawerListMixin2, _MetricListMixin2, _Names, _I18n) {
    Object.defineProperty(exports, "__esModule", {
      value: true
    });
  
    var _declare2 = _interopRequireDefault(_declare);
  
    var _lang2 = _interopRequireDefault(_lang);
  
    var _List2 = _interopRequireDefault(_List);
  
    var _RightDrawerListMixin3 = _interopRequireDefault(_RightDrawerListMixin2);
  
    var _MetricListMixin3 = _interopRequireDefault(_MetricListMixin2);
  
    var _Names2 = _interopRequireDefault(_Names);
  
    var _I18n2 = _interopRequireDefault(_I18n);
  
    function _interopRequireDefault(obj) {
      return obj && obj.__esModule ? obj : {
        default: obj
      };
    }
  
    var resource = (0, _I18n2.default)('erpSalesOrderPersonsList'); /* Copyright 2017 Infor
                                                                     *
                                                                     * Licensed under the Apache License, Version 2.0 (the "License");
                                                                     * you may not use this file except in compliance with the License.
                                                                     * You may obtain a copy of the License at
                                                                     *
                                                                     *    http://www.apache.org/licenses/LICENSE-2.0
                                                                     *
                                                                     * Unless required by applicable law or agreed to in writing, software
                                                                     * distributed under the License is distributed on an "AS IS" BASIS,
                                                                     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
                                                                     * See the License for the specific language governing permissions and
                                                                     * limitations under the License.
                                                                     */
  
    var __class = (0, _declare2.default)('crm.Integrations.BOE.Views.ERPSalesOrderPersons.List', [_List2.default, _RightDrawerListMixin3.default, _MetricListMixin3.default], {
      // Templates
      // TODO: Need template from PM
      itemTemplate: new Simplate(['<p class="listview-heading">{%: $.ErpPerson.Name %}</p>', '<p class="micro-text address">{%: $.ErpPerson.Address.FullAddress %}</p>']),
  
      // Localization
      titleText: resource.titleText,
  
      // View Properties
      id: 'erpsalesorderperson_list',
      modelName: _Names2.default.ERPSALESORDERPERSON,
      resourceKind: 'erpSalesOrderPersons',
      allowSelection: true,
      enableActions: true,
      security: 'Entities/ErpPerson/View',
      insertSecurity: 'Entities/ErpPerson/Add',
  
      // Card layout
      itemIconClass: 'user',
  
      formatSearchQuery: function formatSearchQuery(searchQuery) {
        var q = this.escapeSearchQuery(searchQuery.toUpperCase());
        return 'upper(ErpPerson.Name) like "%' + q + '%"';
      }
    });
  
    _lang2.default.setObject('icboe.Views.ERPSalesOrderPersons.List', __class);
    exports.default = __class;
    module.exports = exports['default'];
  });