Built motion from commit 20e1a16.|0.0.54
[motion.git] / server / models / history / report_call_history.js
1 var _0xf2dc=["\x65\x78\x70\x6F\x72\x74\x73","\x52\x65\x70\x6F\x72\x74\x43\x61\x6C\x6C\x48\x69\x73\x74\x6F\x72\x79","\x53\x54\x52\x49\x4E\x47","\x44\x41\x54\x45","","\x61\x6E\x73\x77\x65\x72\x74\x69\x6D\x65","\x73\x65\x74\x44\x61\x74\x61\x56\x61\x6C\x75\x65","\x49\x4E\x54\x45\x47\x45\x52","\x72\x65\x70\x6F\x72\x74\x5F\x63\x61\x6C\x6C\x5F\x68\x69\x73\x74\x6F\x72\x79","\x48\x69\x73\x74\x6F\x72\x79\x51\x75\x65\x75\x65\x43\x61\x6C\x6C\x73","\x75\x6E\x69\x71\x75\x65\x69\x64","\x68\x61\x73\x4D\x61\x6E\x79","\x48\x69\x73\x74\x6F\x72\x79\x52\x65\x70\x6F\x72\x74\x41\x67\x65\x6E\x74\x73","\x64\x65\x66\x69\x6E\x65","\x69\x64","\x72\x65\x6D\x6F\x76\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65"];module[_0xf2dc[0]]=function(_0xe53dx1,_0xe53dx2){var _0xe53dx3=_0xe53dx1[_0xf2dc[13]](_0xf2dc[1],{accountcode:_0xe53dx2[_0xf2dc[2]],source:_0xe53dx2[_0xf2dc[2]],destination:_0xe53dx2[_0xf2dc[2]],destinationcontext:_0xe53dx2[_0xf2dc[2]],callerid:_0xe53dx2[_0xf2dc[2]],channel:_0xe53dx2[_0xf2dc[2]],destinationchannel:_0xe53dx2[_0xf2dc[2]],lastapplication:_0xe53dx2[_0xf2dc[2]],lastdata:_0xe53dx2[_0xf2dc[2]],starttime:_0xe53dx2[_0xf2dc[3]],answertime:{type:_0xe53dx2[_0xf2dc[3]],set:function(_0xe53dx4){if(_0xe53dx4!==_0xf2dc[4]){this[_0xf2dc[6]](_0xf2dc[5],_0xe53dx4)}else {this[_0xf2dc[6]](_0xf2dc[5],null)}}},endtime:_0xe53dx2[_0xf2dc[3]],duration:_0xe53dx2[_0xf2dc[7]],billableseconds:_0xe53dx2[_0xf2dc[7]],disposition:_0xe53dx2[_0xf2dc[2]],amaflags:_0xe53dx2[_0xf2dc[2]],uniqueid:{type:_0xe53dx2[_0xf2dc[2]],primaryKey:true},userfield:_0xe53dx2[_0xf2dc[2]]},{tableName:_0xf2dc[8],associate:function(_0xe53dx5){_0xe53dx3[_0xf2dc[11]](_0xe53dx5.ReportQueueHistory,{as:_0xf2dc[9],foreignKey:_0xf2dc[10],constraints:false});_0xe53dx3[_0xf2dc[11]](_0xe53dx5.ReportAgentHistory,{as:_0xf2dc[12],foreignKey:_0xf2dc[10],constraints:false})}});_0xe53dx3[_0xf2dc[15]](_0xf2dc[14]);return _0xe53dx3}