Built motion from commit f861bcb808219e66da88ba48b61bddb35224a65e. Version 3.0.0...
[motion-next.git] / server / services / ami / rpc / voiceCallReport.js
index 2f426c1..cde87e3 100644 (file)
@@ -1 +1 @@
-'use strict';const a1309_0x5c33=['disposition','type','billableseconds','outbound','duration','moment','calleridnum','7MCWjPC','endOf','DOCUMENTATION','1019xXdqDi','116545hojdQC','158301CEhNlW','GetVoiceCallReports','Request','69yXQISl','day','create','CreateVoiceCallReport','1357oTcHNX','18429UPcVUH','152629mwPQIX','YYYY-MM-DD\x20HH:mm:ss','format','lodash','77410rjOOZf','merge'];const a1309_0x4d6f=function(_0x5b5ffd,_0x2060a5){_0x5b5ffd=_0x5b5ffd-0x65;let _0x5c3348=a1309_0x5c33[_0x5b5ffd];return _0x5c3348;};const a1309_0x3a6951=a1309_0x4d6f;(function(_0x1762dc,_0x495584){const _0x348b51=a1309_0x4d6f;while(!![]){try{const _0x1677b1=parseInt(_0x348b51(0x7e))+-parseInt(_0x348b51(0x71))+-parseInt(_0x348b51(0x67))*-parseInt(_0x348b51(0x6b))+parseInt(_0x348b51(0x6c))+parseInt(_0x348b51(0x7f))+-parseInt(_0x348b51(0x6d))+-parseInt(_0x348b51(0x7a))*-parseInt(_0x348b51(0x7d));if(_0x1677b1===_0x495584)break;else _0x1762dc['push'](_0x1762dc['shift']());}catch(_0x4a2360){_0x1762dc['push'](_0x1762dc['shift']());}}}(a1309_0x5c33,0x280a2));const moment=require(a1309_0x3a6951(0x78)),_=require(a1309_0x3a6951(0x70)),client=require('../client');exports[a1309_0x3a6951(0x69)]=function(_0x28ff45){const _0x3a4585=a1309_0x3a6951;return client['Request']('CreateVoiceCallReport',{'body':_[_0x3a4585(0x72)](_0x28ff45,{'source':_0x28ff45[_0x3a4585(0x79)],'destinationcontext':_0x28ff45['context'],'callerid':_0x28ff45['callerid'],'amaflags':_0x3a4585(0x7c)}),'log':_0x3a4585(0x6a)});},exports['getVoiceCallReports']=function(){return function(){const _0x25982c=a1309_0x4d6f;return client[_0x25982c(0x66)]('GetVoiceCallReport',{'options':{'where':{'type':[_0x25982c(0x76)],'createdAt':{'$between':[moment()['startOf'](_0x25982c(0x68))[_0x25982c(0x6f)](_0x25982c(0x6e)),moment()[_0x25982c(0x7b)]('day')[_0x25982c(0x6f)]('YYYY-MM-DD\x20HH:mm:ss')]}},'attributes':[_0x25982c(0x74),_0x25982c(0x73),_0x25982c(0x77),_0x25982c(0x75)]},'log':_0x25982c(0x65)});};};
\ No newline at end of file
+'use strict';const a1317_0x4d80=['startOf','CreateVoiceCallReport','87559pIoARE','callerid','merge','Request','format','4xqrqUI','745583NbupTC','create','1439189LrujCH','between','YYYY-MM-DD\x20HH:mm:ss','239LaggTP','context','1wouAvb','type','billableseconds','../client','168187ZJcEZl','GetVoiceCallReport','939871zpSPOa','disposition','DOCUMENTATION','day','sequelize','317AgNWjt','878728tiCLjd','getVoiceCallReports','lodash'];const a1317_0x5b0f=function(_0x52e25d,_0x384426){_0x52e25d=_0x52e25d-0x1aa;let _0x4d80e9=a1317_0x4d80[_0x52e25d];return _0x4d80e9;};const a1317_0x2e5fe3=a1317_0x5b0f;(function(_0x157d49,_0x102733){const _0x52c450=a1317_0x5b0f;while(!![]){try{const _0x84037f=-parseInt(_0x52c450(0x1be))+parseInt(_0x52c450(0x1b2))*-parseInt(_0x52c450(0x1c3))+-parseInt(_0x52c450(0x1b8))*-parseInt(_0x52c450(0x1bd))+-parseInt(_0x52c450(0x1ad))*-parseInt(_0x52c450(0x1c5))+-parseInt(_0x52c450(0x1ab))+-parseInt(_0x52c450(0x1b3))+parseInt(_0x52c450(0x1c0));if(_0x84037f===_0x102733)break;else _0x157d49['push'](_0x157d49['shift']());}catch(_0x3d7d45){_0x157d49['push'](_0x157d49['shift']());}}}(a1317_0x4d80,0xd236b));const moment=require('moment'),_=require(a1317_0x2e5fe3(0x1b5)),{Op}=require(a1317_0x2e5fe3(0x1b1)),client=require(a1317_0x2e5fe3(0x1aa));exports[a1317_0x2e5fe3(0x1bf)]=function(_0x59b7a7){const _0x5972e8=a1317_0x2e5fe3;return client['Request'](_0x5972e8(0x1b7),{'body':_[_0x5972e8(0x1ba)](_0x59b7a7,{'source':_0x59b7a7['calleridnum'],'destinationcontext':_0x59b7a7[_0x5972e8(0x1c4)],'callerid':_0x59b7a7[_0x5972e8(0x1b9)],'amaflags':_0x5972e8(0x1af)}),'log':_0x5972e8(0x1b7)});},exports[a1317_0x2e5fe3(0x1b4)]=function(){return function(){const _0xff0a3d=a1317_0x5b0f;return client[_0xff0a3d(0x1bb)](_0xff0a3d(0x1ac),{'options':{'where':{'type':['outbound'],'createdAt':{[Op[_0xff0a3d(0x1c1)]]:[moment()[_0xff0a3d(0x1b6)](_0xff0a3d(0x1b0))[_0xff0a3d(0x1bc)](_0xff0a3d(0x1c2)),moment()['endOf']('day')['format'](_0xff0a3d(0x1c2))]}},'attributes':[_0xff0a3d(0x1c6),_0xff0a3d(0x1ae),'duration',_0xff0a3d(0x1c7)]},'log':'GetVoiceCallReports'});};};
\ No newline at end of file