text: "use strict";
  
  var cov_1apb6uqvzr = function () {
      var path = "/Users/hoangphuc/nowcrawler/build/services/crud/translateService.js",
          hash = "95bb0dd3620c4188d23fde12c47aeb91ee612fe1",
          Function = function () {}.constructor,
          global = new Function('return this')(),
          gcv = "__coverage__",
          coverageData = {
          path: "/Users/hoangphuc/nowcrawler/build/services/crud/translateService.js",
          statementMap: {
              "0": {
                  start: {
                      line: 2,
                      column: 16
                  },
                  end: {
                      line: 9,
                      column: 1
                  }
              },
              "1": {
                  start: {
                      line: 3,
                      column: 4
                  },
                  end: {
                      line: 8,
                      column: 7
                  }
              },
              "2": {
                  start: {
                      line: 4,
                      column: 36
                  },
                  end: {
                      line: 4,
                      column: 97
                  }
              },
              "3": {
                  start: {
                      line: 4,
                      column: 42
                  },
                  end: {
                      line: 4,
                      column: 70
                  }
              },
              "4": {
                  start: {
                      line: 4,
                      column: 85
                  },
                  end: {
                      line: 4,
                      column: 95
                  }
              },
              "5": {
                  start: {
                      line: 5,
                      column: 35
                  },
                  end: {
                      line: 5,
                      column: 100
                  }
              },
              "6": {
                  start: {
                      line: 5,
                      column: 41
                  },
                  end: {
                      line: 5,
                      column: 73
                  }
              },
              "7": {
                  start: {
                      line: 5,
                      column: 88
                  },
                  end: {
                      line: 5,
                      column: 98
                  }
              },
              "8": {
                  start: {
                      line: 6,
                      column: 32
                  },
                  end: {
                      line: 6,
                      column: 149
                  }
              },
              "9": {
                  start: {
                      line: 6,
                      column: 97
                  },
                  end: {
                      line: 6,
                      column: 119
                  }
              },
              "10": {
                  start: {
                      line: 7,
                      column: 8
                  },
                  end: {
                      line: 7,
                      column: 78
                  }
              },
              "11": {
                  start: {
                      line: 10,
                      column: 0
                  },
                  end: {
                      line: 10,
                      column: 62
                  }
              },
              "12": {
                  start: {
                      line: 11,
                      column: 25
                  },
                  end: {
                      line: 11,
                      column: 53
                  }
              },
              "13": {
                  start: {
                      line: 12,
                      column: 17
                  },
                  end: {
                      line: 12,
                      column: 43
                  }
              },
              "14": {
                  start: {
                      line: 13,
                      column: 17
                  },
                  end: {
                      line: 13,
                      column: 36
                  }
              },
              "15": {
                  start: {
                      line: 16,
                      column: 8
                  },
                  end: {
                      line: 16,
                      column: 34
                  }
              },
              "16": {
                  start: {
                      line: 23,
                      column: 8
                  },
                  end: {
                      line: 35,
                      column: 11
                  }
              },
              "17": {
                  start: {
                      line: 24,
                      column: 12
                  },
                  end: {
                      line: 34,
                      column: 13
                  }
              },
              "18": {
                  start: {
                      line: 25,
                      column: 39
                  },
                  end: {
                      line: 26,
                      column: 68
                  }
              },
              "19": {
                  start: {
                      line: 27,
                      column: 16
                  },
                  end: {
                      line: 30,
                      column: 30
                  }
              },
              "20": {
                  start: {
                      line: 27,
                      column: 65
                  },
                  end: {
                      line: 30,
                      column: 24
                  }
              },
              "21": {
                  start: {
                      line: 33,
                      column: 16
                  },
                  end: {
                      line: 33,
                      column: 28
                  }
              },
              "22": {
                  start: {
                      line: 38,
                      column: 0
                  },
                  end: {
                      line: 38,
                      column: 44
                  }
              }
          },
          fnMap: {
              "0": {
                  name: "(anonymous_0)",
                  decl: {
                      start: {
                          line: 2,
                          column: 44
                      },
                      end: {
                          line: 2,
                          column: 45
                      }
                  },
                  loc: {
                      start: {
                          line: 2,
                          column: 89
                      },
                      end: {
                          line: 9,
                          column: 1
                      }
                  },
                  line: 2
              },
              "1": {
                  name: "(anonymous_1)",
                  decl: {
                      start: {
                          line: 3,
                          column: 36
                      },
                      end: {
                          line: 3,
                          column: 37
                      }
                  },
                  loc: {
                      start: {
                          line: 3,
                          column: 63
                      },
                      end: {
                          line: 8,
                          column: 5
                      }
                  },
                  line: 3
              },
              "2": {
                  name: "fulfilled",
                  decl: {
                      start: {
                          line: 4,
                          column: 17
                      },
                      end: {
                          line: 4,
                          column: 26
                      }
                  },
                  loc: {
                      start: {
                          line: 4,
                          column: 34
                      },
                      end: {
                          line: 4,
                          column: 99
                      }
                  },
                  line: 4
              },
              "3": {
                  name: "rejected",
                  decl: {
                      start: {
                          line: 5,
                          column: 17
                      },
                      end: {
                          line: 5,
                          column: 25
                      }
                  },
                  loc: {
                      start: {
                          line: 5,
                          column: 33
                      },
                      end: {
                          line: 5,
                          column: 102
                      }
                  },
                  line: 5
              },
              "4": {
                  name: "step",
                  decl: {
                      start: {
                          line: 6,
                          column: 17
                      },
                      end: {
                          line: 6,
                          column: 21
                      }
                  },
                  loc: {
                      start: {
                          line: 6,
                          column: 30
                      },
                      end: {
                          line: 6,
                          column: 151
                      }
                  },
                  line: 6
              },
              "5": {
                  name: "(anonymous_5)",
                  decl: {
                      start: {
                          line: 6,
                          column: 76
                      },
                      end: {
                          line: 6,
                          column: 77
                      }
                  },
                  loc: {
                      start: {
                          line: 6,
                          column: 95
                      },
                      end: {
                          line: 6,
                          column: 121
                      }
                  },
                  line: 6
              },
              "6": {
                  name: "(anonymous_6)",
                  decl: {
                      start: {
                          line: 15,
                          column: 4
                      },
                      end: {
                          line: 15,
                          column: 5
                      }
                  },
                  loc: {
                      start: {
                          line: 15,
                          column: 18
                      },
                      end: {
                          line: 17,
                          column: 5
                      }
                  },
                  line: 15
              },
              "7": {
                  name: "(anonymous_7)",
                  decl: {
                      start: {
                          line: 18,
                          column: 4
                      },
                      end: {
                          line: 18,
                          column: 5
                      }
                  },
                  loc: {
                      start: {
                          line: 22,
                          column: 7
                      },
                      end: {
                          line: 36,
                          column: 5
                      }
                  },
                  line: 22
              },
              "8": {
                  name: "(anonymous_8)",
                  decl: {
                      start: {
                          line: 23,
                          column: 47
                      },
                      end: {
                          line: 23,
                          column: 48
                      }
                  },
                  loc: {
                      start: {
                          line: 23,
                          column: 60
                      },
                      end: {
                          line: 35,
                          column: 9
                      }
                  },
                  line: 23
              },
              "9": {
                  name: "(anonymous_9)",
                  decl: {
                      start: {
                          line: 27,
                          column: 50
                      },
                      end: {
                          line: 27,
                          column: 51
                      }
                  },
                  loc: {
                      start: {
                          line: 27,
                          column: 65
                      },
                      end: {
                          line: 30,
                          column: 24
                      }
                  },
                  line: 27
              }
          },
          branchMap: {
              "0": {
                  loc: {
                      start: {
                          line: 2,
                          column: 16
                      },
                      end: {
                          line: 9,
                          column: 1
                      }
                  },
                  type: "binary-expr",
                  locations: [{
                      start: {
                          line: 2,
                          column: 17
                      },
                      end: {
                          line: 2,
                          column: 21
                      }
                  }, {
                      start: {
                          line: 2,
                          column: 25
                      },
                      end: {
                          line: 2,
                          column: 39
                      }
                  }, {
                      start: {
                          line: 2,
                          column: 44
                      },
                      end: {
                          line: 9,
                          column: 1
                      }
                  }],
                  line: 2
              },
              "1": {
                  loc: {
                      start: {
                          line: 3,
                          column: 16
                      },
                      end: {
                          line: 3,
                          column: 34
                      }
                  },
                  type: "binary-expr",
                  locations: [{
                      start: {
                          line: 3,
                          column: 16
                      },
                      end: {
                          line: 3,
                          column: 17
                      }
                  }, {
                      start: {
                          line: 3,
                          column: 22
                      },
                      end: {
                          line: 3,
                          column: 33
                      }
                  }],
                  line: 3
              },
              "2": {
                  loc: {
                      start: {
                          line: 6,
                          column: 32
                      },
                      end: {
                          line: 6,
                          column: 148
                      }
                  },
                  type: "cond-expr",
                  locations: [{
                      start: {
                          line: 6,
                          column: 46
                      },
                      end: {
                          line: 6,
                          column: 67
                      }
                  }, {
                      start: {
                          line: 6,
                          column: 70
                      },
                      end: {
                          line: 6,
                          column: 148
                      }
                  }],
                  line: 6
              },
              "3": {
                  loc: {
                      start: {
                          line: 7,
                          column: 51
                      },
                      end: {
                          line: 7,
                          column: 67
                      }
                  },
                  type: "binary-expr",
                  locations: [{
                      start: {
                          line: 7,
                          column: 51
                      },
                      end: {
                          line: 7,
                          column: 61
                      }
                  }, {
                      start: {
                          line: 7,
                          column: 65
                      },
                      end: {
                          line: 7,
                          column: 67
                      }
                  }],
                  line: 7
              },
              "4": {
                  loc: {
                      start: {
                          line: 18,
                          column: 20
                      },
                      end: {
                          line: 22,
                          column: 5
                      }
                  },
                  type: "default-arg",
                  locations: [{
                      start: {
                          line: 18,
                          column: 29
                      },
                      end: {
                          line: 22,
                          column: 5
                      }
                  }],
                  line: 18
              }
          },
          s: {
              "0": 0,
              "1": 0,
              "2": 0,
              "3": 0,
              "4": 0,
              "5": 0,
              "6": 0,
              "7": 0,
              "8": 0,
              "9": 0,
              "10": 0,
              "11": 0,
              "12": 0,
              "13": 0,
              "14": 0,
              "15": 0,
              "16": 0,
              "17": 0,
              "18": 0,
              "19": 0,
              "20": 0,
              "21": 0,
              "22": 0
          },
          f: {
              "0": 0,
              "1": 0,
              "2": 0,
              "3": 0,
              "4": 0,
              "5": 0,
              "6": 0,
              "7": 0,
              "8": 0,
              "9": 0
          },
          b: {
              "0": [0, 0, 0],
              "1": [0, 0],
              "2": [0, 0],
              "3": [0, 0],
              "4": [0]
          },
          _coverageSchema: "332fd63041d2c1bcb487cc26dd0d5f7d97098a6c"
      },
          coverage = global[gcv] || (global[gcv] = {});
  
      if (coverage[path] && coverage[path].hash === hash) {
          return coverage[path];
      }
  
      coverageData.hash = hash;
      return coverage[path] = coverageData;
  }();
  
  var _regenerator = require("babel-runtime/regenerator");
  
  var _regenerator2 = _interopRequireDefault(_regenerator);
  
  var _defineProperty2 = require("babel-runtime/helpers/defineProperty");
  
  var _defineProperty3 = _interopRequireDefault(_defineProperty2);
  
  var _classCallCheck2 = require("babel-runtime/helpers/classCallCheck");
  
  var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
  
  var _createClass2 = require("babel-runtime/helpers/createClass");
  
  var _createClass3 = _interopRequireDefault(_createClass2);
  
  var _possibleConstructorReturn2 = require("babel-runtime/helpers/possibleConstructorReturn");
  
  var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
  
  var _inherits2 = require("babel-runtime/helpers/inherits");
  
  var _inherits3 = _interopRequireDefault(_inherits2);
  
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  
  var __awaiter = (cov_1apb6uqvzr.s[0]++, (cov_1apb6uqvzr.b[0][0]++, undefined) && (cov_1apb6uqvzr.b[0][1]++, undefined.__awaiter) || (cov_1apb6uqvzr.b[0][2]++, function (thisArg, _arguments, P, generator) {
      cov_1apb6uqvzr.f[0]++;
      cov_1apb6uqvzr.s[1]++;
  
      return new ((cov_1apb6uqvzr.b[1][0]++, P) || (cov_1apb6uqvzr.b[1][1]++, P = Promise))(function (resolve, reject) {
          cov_1apb6uqvzr.f[1]++;
  
          function fulfilled(value) {
              cov_1apb6uqvzr.f[2]++;
              cov_1apb6uqvzr.s[2]++;
              try {
                  cov_1apb6uqvzr.s[3]++;
                  step(generator.next(value));
              } catch (e) {
                  cov_1apb6uqvzr.s[4]++;
                  reject(e);
              }
          }
          function rejected(value) {
              cov_1apb6uqvzr.f[3]++;
              cov_1apb6uqvzr.s[5]++;
              try {
                  cov_1apb6uqvzr.s[6]++;
                  step(generator["throw"](value));
              } catch (e) {
                  cov_1apb6uqvzr.s[7]++;
                  reject(e);
              }
          }
          function step(result) {
              cov_1apb6uqvzr.f[4]++;
              cov_1apb6uqvzr.s[8]++;
              result.done ? (cov_1apb6uqvzr.b[2][0]++, resolve(result.value)) : (cov_1apb6uqvzr.b[2][1]++, new P(function (resolve) {
                  cov_1apb6uqvzr.f[5]++;
                  cov_1apb6uqvzr.s[9]++;
                  resolve(result.value);
              }).then(fulfilled, rejected));
          }
          cov_1apb6uqvzr.s[10]++;
          step((generator = generator.apply(thisArg, (cov_1apb6uqvzr.b[3][0]++, _arguments) || (cov_1apb6uqvzr.b[3][1]++, []))).next());
      });
  }));
  cov_1apb6uqvzr.s[11]++;
  Object.defineProperty(exports, "__esModule", { value: true });
  var crudService_pg_1 = (cov_1apb6uqvzr.s[12]++, require("../crudService.pg"));
  var tables_1 = (cov_1apb6uqvzr.s[13]++, require("../../models/tables"));
  var config_1 = (cov_1apb6uqvzr.s[14]++, require("../../config"));
  
  var TranslateService = function (_ref) {
      (0, _inherits3.default)(TranslateService, _ref);
  
      function TranslateService() {
          (0, _classCallCheck3.default)(this, TranslateService);
          cov_1apb6uqvzr.f[6]++;
          cov_1apb6uqvzr.s[15]++;
          return (0, _possibleConstructorReturn3.default)(this, (TranslateService.__proto__ || Object.getPrototypeOf(TranslateService)).call(this, tables_1.Translate));
      }
  
      (0, _createClass3.default)(TranslateService, [{
          key: "getListOverRide",
          value: function getListOverRide() {
              var option = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : (cov_1apb6uqvzr.b[4][0]++, {
                  limit: config_1.config.database.defaultPageSize,
                  offset: 0,
                  scope: ['defaultScope']
              });
              cov_1apb6uqvzr.f[7]++;
              cov_1apb6uqvzr.s[16]++;
  
              return __awaiter(this, void 0, void 0, /*#__PURE__*/_regenerator2.default.mark(function _callee() {
                  var list_translate;
                  return _regenerator2.default.wrap(function _callee$(_context) {
                      while (1) {
                          switch (_context.prev = _context.next) {
                              case 0:
                                  cov_1apb6uqvzr.f[8]++;
                                  cov_1apb6uqvzr.s[17]++;
                                  _context.prev = 2;
                                  cov_1apb6uqvzr.s[18]++;
                                  _context.next = 6;
                                  return this.exec(this.modelWithScope(option.scope).findAndCountAll(this.applyFindOptions(option)));
  
                              case 6:
                                  list_translate = _context.sent;
                                  cov_1apb6uqvzr.s[19]++;
                                  return _context.abrupt("return", list_translate.rows.reduce(function (obj, item) {
                                      cov_1apb6uqvzr.f[9]++;
                                      cov_1apb6uqvzr.s[20]++;
                                      return Object.assign(obj, (0, _defineProperty3.default)({}, item.key, {
                                          'value': item.value,
                                          'value_vn': item.value_vn
                                      }));
                                  }, {}));
  
                              case 11:
                                  _context.prev = 11;
                                  _context.t0 = _context["catch"](2);
                                  cov_1apb6uqvzr.s[21]++;
                                  throw _context.t0;
  
                              case 15:
                              case "end":
                                  return _context.stop();
                          }
                      }
                  }, _callee, this, [[2, 11]]);
              }));
          }
      }]);
      return TranslateService;
  }((crudService_pg_1.CrudService));
  
  cov_1apb6uqvzr.s[22]++;
  
  exports.TranslateService = TranslateService;
  //# sourceMappingURL=translateService.js.map
  //# sourceMappingURL=translateService.js.map