Built motion from commit 82438f7.|0.0.115
[motion.git] / server / models / history / report_dial_history.js
index d518619..1df061f 100644 (file)
@@ -1 +1,49 @@
-var _0x383e=["\x65\x78\x70\x6F\x72\x74\x73","\x52\x65\x70\x6F\x72\x74\x44\x69\x61\x6C\x48\x69\x73\x74\x6F\x72\x79","\x53\x54\x52\x49\x4E\x47","\x49\x4E\x54\x45\x47\x45\x52","\x72\x65\x70\x6F\x72\x74\x5F\x64\x69\x61\x6C\x5F\x68\x69\x73\x74\x6F\x72\x79","\x64\x65\x66\x69\x6E\x65","\x69\x64","\x72\x65\x6D\x6F\x76\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65"];module[_0x383e[0]]=function(_0xf7f7x1,_0xf7f7x2){var _0xf7f7x3=_0xf7f7x1[_0x383e[5]](_0x383e[1],{channel:_0xf7f7x2[_0x383e[2]],channelstate:_0xf7f7x2[_0x383e[3]],channelstatedesc:_0xf7f7x2[_0x383e[2]],calleridnum:_0xf7f7x2[_0x383e[2]],calleridname:_0xf7f7x2[_0x383e[2]],connectedlinenum:_0xf7f7x2[_0x383e[2]],connectedlinename:_0xf7f7x2[_0x383e[2]],language:_0xf7f7x2[_0x383e[2]],accountcode:_0xf7f7x2[_0x383e[2]],context:_0xf7f7x2[_0x383e[2]],exten:_0xf7f7x2[_0x383e[2]],priority:_0xf7f7x2[_0x383e[3]],uniqueid:_0xf7f7x2[_0x383e[2]],destchannel:_0xf7f7x2[_0x383e[2]],destchannelstate:_0xf7f7x2[_0x383e[3]],destchannelstatedesc:_0xf7f7x2[_0x383e[2]],destcalleridnum:_0xf7f7x2[_0x383e[2]],destcalleridname:_0xf7f7x2[_0x383e[2]],destconnectedlinenum:_0xf7f7x2[_0x383e[2]],destconnectedlinename:_0xf7f7x2[_0x383e[2]],destlanguage:_0xf7f7x2[_0x383e[2]],destaccountcode:_0xf7f7x2[_0x383e[2]],destcontext:_0xf7f7x2[_0x383e[2]],destexten:_0xf7f7x2[_0x383e[2]],destpriority:_0xf7f7x2[_0x383e[3]],destuniqueid:_0xf7f7x2[_0x383e[2]],dialstring:_0xf7f7x2[_0x383e[2]],dialstatus:_0xf7f7x2[_0x383e[2]]},{tableName:_0x383e[4]});_0xf7f7x3[_0x383e[7]](_0x383e[6]);return _0xf7f7x3;};
\ No newline at end of file
+/**
+ * DIAL Model
+ */
+
+module.exports = function(sequelize, DataTypes) {
+
+  var ReportDialHistory = sequelize.define('ReportDialHistory', {
+    privilege: DataTypes.STRING,
+    channel: DataTypes.STRING,
+    channelstate: DataTypes.INTEGER,
+    channelstatedesc: DataTypes.STRING,
+    calleridnum: DataTypes.STRING,
+    calleridname: DataTypes.STRING,
+    connectedlinenum: DataTypes.STRING,
+    connectedlinename: DataTypes.STRING,
+    language: DataTypes.STRING,
+    accountcode: DataTypes.STRING,
+    context: DataTypes.STRING,
+    exten: DataTypes.STRING,
+    priority: DataTypes.INTEGER,
+    uniqueid: DataTypes.STRING,
+    linkedid: DataTypes.STRING,
+    destchannel: DataTypes.STRING,
+    destchannelstate: DataTypes.INTEGER,
+    destchannelstatedesc: DataTypes.STRING,
+    destcalleridnum: DataTypes.STRING,
+    destcalleridname: DataTypes.STRING,
+    destconnectedlinenum: DataTypes.STRING,
+    destconnectedlinename: DataTypes.STRING,
+    destlanguage: DataTypes.STRING,
+    destaccountcode: DataTypes.STRING,
+    destcontext: DataTypes.STRING,
+    destexten: DataTypes.STRING,
+    destpriority: DataTypes.INTEGER,
+    destuniqueid: DataTypes.STRING,
+    destlinkedid: DataTypes.STRING,
+    dialstring: DataTypes.STRING,
+    dialstatus: DataTypes.STRING,
+    starttime: DataTypes.DATE,
+    answertime: DataTypes.DATE,
+    endtime: DataTypes.DATE,
+    lastevent: DataTypes.STRING
+  }, {
+    tableName: 'report_dial_history'
+  });
+
+  ReportDialHistory.removeAttribute('id');
+  return ReportDialHistory;
+};