Built motion from commit dde1e88.|2.0.25
[motion2.git] / server / api / voiceCallReport / voiceCallReport.rpc.js
1 var _0x773f=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x6D\x6F\x6D\x65\x6E\x74","\x62\x6C\x75\x65\x62\x69\x72\x64","\x64\x62","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x79\x73\x71\x6C\x64\x62","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x75\x74\x69\x6C\x73","\x72\x70\x63","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x6C\x6F\x67\x67\x65\x72","\x6A\x61\x79\x73\x6F\x6E\x2F\x70\x72\x6F\x6D\x69\x73\x65","\x68\x74\x74\x70","\x63\x6C\x69\x65\x6E\x74","\x56\x6F\x69\x63\x65\x43\x61\x6C\x6C\x52\x65\x70\x6F\x72\x74\x2C\x20\x25\x73\x2C\x20\x25\x73","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x72\x65\x71\x75\x65\x73\x74\x20\x73\x65\x6E\x74","\x69\x6E\x66\x6F","\x56\x6F\x69\x63\x65\x43\x61\x6C\x6C\x52\x65\x70\x6F\x72\x74\x2C\x20\x25\x73\x2C\x20\x25\x73\x2C\x20\x25\x73","\x73\x74\x72\x69\x6E\x67\x69\x66\x79","\x64\x65\x62\x75\x67","\x63\x6F\x64\x65","\x6D\x65\x73\x73\x61\x67\x65","\x72\x65\x73\x75\x6C\x74","\x74\x68\x65\x6E","\x72\x65\x71\x75\x65\x73\x74","\x47\x65\x74\x56\x6F\x69\x63\x65\x43\x61\x6C\x6C\x52\x65\x70\x6F\x72\x74","\x6F\x70\x74\x69\x6F\x6E\x73","\x72\x61\x77","\x77\x68\x65\x72\x65","\x61\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x6C\x69\x6D\x69\x74","\x69\x6E\x63\x6C\x75\x64\x65","\x6D\x6F\x64\x65\x6C","\x61\x73","\x6D\x61\x70","\x66\x69\x6E\x64\x41\x6C\x6C","\x56\x6F\x69\x63\x65\x43\x61\x6C\x6C\x52\x65\x70\x6F\x72\x74","\x43\x72\x65\x61\x74\x65\x56\x6F\x69\x63\x65\x43\x61\x6C\x6C\x52\x65\x70\x6F\x72\x74","\x62\x6F\x64\x79","\x63\x72\x65\x61\x74\x65","\x55\x70\x64\x61\x74\x65\x56\x6F\x69\x63\x65\x43\x61\x6C\x6C\x52\x65\x70\x6F\x72\x74","\x75\x70\x64\x61\x74\x65"];_0x773f[0];var _=require(_0x773f[1]);var util=require(_0x773f[2]);var moment=require(_0x773f[3]);var BPromise=require(_0x773f[4]);var db=require(_0x773f[6])[_0x773f[5]];var utils=require(_0x773f[7]);var logger=require(_0x773f[9])(_0x773f[8]);var jayson=require(_0x773f[10]);var client=jayson[_0x773f[12]][_0x773f[11]]({port:9002});function respondWithRpcPromise(_0xca0exb,_0xca0exc,_0xca0exd){return  new BPromise(function(_0xca0exe,_0xca0exf){return client[_0x773f[25]](_0xca0exb,_0xca0exd)[_0x773f[24]](function(_0xca0ex11){logger[_0x773f[17]](_0x773f[13],_0xca0exc,_0x773f[16]);logger[_0x773f[20]](_0x773f[18],_0xca0exc,_0x773f[16],JSON[_0x773f[19]](_0xca0ex11));if(_0xca0ex11[_0x773f[14]]){if(_0xca0ex11[_0x773f[14]][_0x773f[21]]=== 500){logger[_0x773f[14]](_0x773f[13],_0xca0exc,_0xca0ex11[_0x773f[14]][_0x773f[22]]);return _0xca0exf(_0xca0ex11[_0x773f[14]][_0x773f[22]])};logger[_0x773f[14]](_0x773f[13],_0xca0exc,_0xca0ex11[_0x773f[14]][_0x773f[22]]);return _0xca0exe(_0xca0ex11[_0x773f[14]][_0x773f[22]])}else {logger[_0x773f[17]](_0x773f[13],_0xca0exc,_0x773f[16]);_0xca0exe(_0xca0ex11[_0x773f[23]][_0x773f[22]])}})[_0x773f[15]](function(_0xca0ex10){logger[_0x773f[14]](_0x773f[13],_0xca0exc,_0xca0ex10);_0xca0exf(_0xca0ex10)})})}exports[_0x773f[26]]= function(_0xca0exd){var _0xca0ex12=this;return  new Promise(function(_0xca0exe,_0xca0exf){return db[_0x773f[37]][_0x773f[36]]({raw:_0xca0exd[_0x773f[27]]?(_0xca0exd[_0x773f[27]][_0x773f[28]]=== undefined)?true:false:true,where:_0xca0exd[_0x773f[27]]?_0xca0exd[_0x773f[27]][_0x773f[29]]|| null:null,attributes:_0xca0exd[_0x773f[27]]?_0xca0exd[_0x773f[27]][_0x773f[30]]|| null:null,limit:_0xca0exd[_0x773f[27]]?_0xca0exd[_0x773f[27]][_0x773f[31]]|| null:null,include:_0xca0exd[_0x773f[27]]?(_0xca0exd[_0x773f[27]][_0x773f[32]]?_[_0x773f[35]](_0xca0exd[_0x773f[27]][_0x773f[32]],function(_0xca0ex13){return {model:db[_0xca0ex13[_0x773f[33]]],as:_0xca0ex13[_0x773f[34]],attributes:_0xca0ex13[_0x773f[30]],include:_0xca0ex13[_0x773f[32]]?_[_0x773f[35]](_0xca0ex13[_0x773f[32]],function(_0xca0ex14){return {model:db[_0xca0ex14[_0x773f[33]]],as:_0xca0ex14[_0x773f[34]],attributes:_0xca0ex14[_0x773f[30]],include:_0xca0ex14[_0x773f[32]]?_[_0x773f[35]](_0xca0ex14[_0x773f[32]],function(_0xca0ex15){return {model:db[_0xca0ex15[_0x773f[33]]],as:_0xca0ex15[_0x773f[34]],attributes:_0xca0ex15[_0x773f[30]]}}):[]}}):[]}}):[]):[]})[_0x773f[24]](function(_0xca0ex11){logger[_0x773f[17]](_0x773f[26],_0xca0exd);logger[_0x773f[20]](_0x773f[26],_0xca0exd,JSON[_0x773f[19]](_0xca0ex11));_0xca0exe(_0xca0ex11)})[_0x773f[15]](function(_0xca0ex10){logger[_0x773f[14]](_0x773f[26],_0xca0ex10[_0x773f[22]],_0xca0exd);_0xca0exf(_0xca0ex12[_0x773f[14]](500,_0xca0ex10[_0x773f[22]]))})})};exports[_0x773f[38]]= function(_0xca0exd){var _0xca0ex12=this;return  new Promise(function(_0xca0exe,_0xca0exf){return db[_0x773f[37]][_0x773f[40]](_0xca0exd[_0x773f[39]],{raw:_0xca0exd[_0x773f[27]]?(_0xca0exd[_0x773f[27]][_0x773f[28]]=== undefined)?true:false:true})[_0x773f[24]](function(_0xca0ex11){logger[_0x773f[17]](_0x773f[38],_0xca0exd);logger[_0x773f[20]](_0x773f[38],_0xca0exd,JSON[_0x773f[19]](_0xca0ex11));_0xca0exe(_0xca0ex11)})[_0x773f[15]](function(_0xca0ex10){logger[_0x773f[14]](_0x773f[38],_0xca0ex10[_0x773f[22]],_0xca0exd);_0xca0exf(_0xca0ex12[_0x773f[14]](500,_0xca0ex10[_0x773f[22]]))})})};exports[_0x773f[41]]= function(_0xca0exd){var _0xca0ex12=this;return  new Promise(function(_0xca0exe,_0xca0exf){return db[_0x773f[37]][_0x773f[42]](_0xca0exd[_0x773f[39]],{raw:_0xca0exd[_0x773f[27]]?(_0xca0exd[_0x773f[27]][_0x773f[28]]=== undefined)?true:false:true,individualHooks:true,where:_0xca0exd[_0x773f[27]]?_0xca0exd[_0x773f[27]][_0x773f[29]]|| null:null,attributes:_0xca0exd[_0x773f[27]]?_0xca0exd[_0x773f[27]][_0x773f[30]]|| null:null,limit:_0xca0exd[_0x773f[27]]?_0xca0exd[_0x773f[27]][_0x773f[31]]|| null:null})[_0x773f[24]](function(_0xca0ex11){logger[_0x773f[17]](_0x773f[41],_0xca0exd);logger[_0x773f[20]](_0x773f[41],_0xca0exd,JSON[_0x773f[19]](_0xca0ex11));_0xca0exe(_0xca0ex11)})[_0x773f[15]](function(_0xca0ex10){logger[_0x773f[14]](_0x773f[41],_0xca0ex10[_0x773f[22]],_0xca0exd);_0xca0exf(_0xca0ex12[_0x773f[14]](500,_0xca0ex10[_0x773f[22]]))})})}