Built motion from commit b8fca89.|0.0.57
[motion.git] / server / models / report_call.js
1 var _0x42b4=["\x65\x78\x70\x6F\x72\x74\x73","\x52\x65\x70\x6F\x72\x74\x43\x61\x6C\x6C","\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","\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","\x52\x65\x70\x6F\x72\x74\x41\x67\x65\x6E\x74\x73","\x64\x65\x66\x69\x6E\x65"];module[_0x42b4[0]]=function(_0xf438x1,_0xf438x2){var _0xf438x3=_0xf438x1[_0x42b4[13]](_0x42b4[1],{uniqueid:{type:_0xf438x2[_0x42b4[2]],unique:true},accountcode:_0xf438x2[_0x42b4[2]],source:_0xf438x2[_0x42b4[2]],destination:_0xf438x2[_0x42b4[2]],destinationcontext:_0xf438x2[_0x42b4[2]],callerid:_0xf438x2[_0x42b4[2]],channel:_0xf438x2[_0x42b4[2]],destinationchannel:_0xf438x2[_0x42b4[2]],lastapplication:_0xf438x2[_0x42b4[2]],lastdata:_0xf438x2[_0x42b4[2]],starttime:_0xf438x2[_0x42b4[3]],answertime:{type:_0xf438x2[_0x42b4[3]],set:function(_0xf438x4){if(_0xf438x4!==_0x42b4[4]){this[_0x42b4[6]](_0x42b4[5],_0xf438x4)}else {this[_0x42b4[6]](_0x42b4[5],null)}}},endtime:_0xf438x2[_0x42b4[3]],duration:_0xf438x2[_0x42b4[7]],billableseconds:_0xf438x2[_0x42b4[7]],disposition:_0xf438x2[_0x42b4[2]],amaflags:_0xf438x2[_0x42b4[2]],userfield:_0xf438x2[_0x42b4[2]]},{tableName:_0x42b4[8],associate:function(_0xf438x5){_0xf438x3[_0x42b4[11]](_0xf438x5.ReportQueue,{as:_0x42b4[9],foreignKey:_0x42b4[10],constraints:false});_0xf438x3[_0x42b4[11]](_0xf438x5.ReportAgent,{as:_0x42b4[12],foreignKey:_0x42b4[10],constraints:false})}});return _0xf438x3}