Built motion from commit df3e9871f6bcc3432fec345b2f4facbd4dba8b5c. Version 3.0.0...
[motion-next.git] / server / api / voiceCallReport / voiceCallReport.rpc.js
index 95929a9..594225e 100644 (file)
@@ -1 +1 @@
-const a711_0x30e6=['info','model','attributes','map','catch','debug','../../mysqldb','update','raw','findAll','UpdateVoiceCallReport','options','then','CreateVoiceCallReport','body','rpc','error','VoiceCallReport','include','GetVoiceCallReport','lodash','limit','message','stringify','where','create'];(function(_0x46d441,_0x30e697){const _0x5ee2b1=function(_0x419fc3){while(--_0x419fc3){_0x46d441['push'](_0x46d441['shift']());}};_0x5ee2b1(++_0x30e697);}(a711_0x30e6,0x1ce));const a711_0x5ee2=function(_0x46d441,_0x30e697){_0x46d441=_0x46d441-0x0;let _0x5ee2b1=a711_0x30e6[_0x46d441];return _0x5ee2b1;};const _0x213696=a711_0x5ee2;'use strict';const _=require(_0x213696('0x0')),db=require(_0x213696('0xc'))['db'],logger=require('../../config/logger')(_0x213696('0x15'));exports[_0x213696('0x19')]=function(_0x419fc3){const _0x5b31fc=this;return new Promise(function(_0x150f68,_0x56596e){const _0x298ce1=a711_0x5ee2;return db[_0x298ce1('0x17')][_0x298ce1('0xf')]({'raw':_0x419fc3[_0x298ce1('0x11')]?_0x419fc3[_0x298ce1('0x11')][_0x298ce1('0xe')]===undefined?!![]:![]:!![],'where':_0x419fc3[_0x298ce1('0x11')]?_0x419fc3[_0x298ce1('0x11')][_0x298ce1('0x4')]||null:null,'attributes':_0x419fc3[_0x298ce1('0x11')]?_0x419fc3[_0x298ce1('0x11')]['attributes']||null:null,'limit':_0x419fc3[_0x298ce1('0x11')]?_0x419fc3[_0x298ce1('0x11')][_0x298ce1('0x1')]||null:null,'include':_0x419fc3[_0x298ce1('0x11')]?_0x419fc3[_0x298ce1('0x11')][_0x298ce1('0x18')]?_[_0x298ce1('0x9')](_0x419fc3[_0x298ce1('0x11')][_0x298ce1('0x18')],function(_0x3795b6){const _0x4b6d57=_0x298ce1;return{'model':db[_0x3795b6[_0x4b6d57('0x7')]],'as':_0x3795b6['as'],'attributes':_0x3795b6[_0x4b6d57('0x8')],'include':_0x3795b6[_0x4b6d57('0x18')]?_['map'](_0x3795b6[_0x4b6d57('0x18')],function(_0x5593bc){const _0x22c55b=_0x4b6d57;return{'model':db[_0x5593bc[_0x22c55b('0x7')]],'as':_0x5593bc['as'],'attributes':_0x5593bc[_0x22c55b('0x8')],'include':_0x5593bc[_0x22c55b('0x18')]?_[_0x22c55b('0x9')](_0x5593bc['include'],function(_0x5aa4da){const _0x361657=_0x22c55b;return{'model':db[_0x5aa4da[_0x361657('0x7')]],'as':_0x5aa4da['as'],'attributes':_0x5aa4da['attributes']};}):[]};}):[]};}):[]:[]})[_0x298ce1('0x12')](function(_0x53bff7){const _0x18162a=_0x298ce1;logger['info'](_0x18162a('0x19'),_0x419fc3),logger[_0x18162a('0xb')]('GetVoiceCallReport',_0x419fc3,JSON['stringify'](_0x53bff7)),_0x150f68(_0x53bff7);})[_0x298ce1('0xa')](function(_0x51f09e){const _0x3c92be=_0x298ce1;logger[_0x3c92be('0x16')](_0x3c92be('0x19'),_0x51f09e[_0x3c92be('0x2')],_0x419fc3),_0x56596e(_0x5b31fc[_0x3c92be('0x16')](0x1f4,_0x51f09e[_0x3c92be('0x2')]));});});},exports[_0x213696('0x13')]=function(_0x24e6a0){const _0x4bc95c=this;return new Promise(function(_0x40b5fe,_0x3e5f07){const _0x4a4aa7=a711_0x5ee2;return db[_0x4a4aa7('0x17')][_0x4a4aa7('0x5')](_0x24e6a0[_0x4a4aa7('0x14')],{'raw':_0x24e6a0[_0x4a4aa7('0x11')]?_0x24e6a0[_0x4a4aa7('0x11')][_0x4a4aa7('0xe')]===undefined?!![]:![]:!![]})[_0x4a4aa7('0x12')](function(_0x26dba5){const _0x5629e7=_0x4a4aa7;logger[_0x5629e7('0x6')](_0x5629e7('0x13'),_0x24e6a0),logger['debug']('CreateVoiceCallReport',_0x24e6a0,JSON['stringify'](_0x26dba5)),_0x40b5fe(_0x26dba5);})['catch'](function(_0x4364e9){const _0x1b484e=_0x4a4aa7;logger[_0x1b484e('0x16')](_0x1b484e('0x13'),_0x4364e9[_0x1b484e('0x2')],_0x24e6a0),_0x3e5f07(_0x4bc95c[_0x1b484e('0x16')](0x1f4,_0x4364e9[_0x1b484e('0x2')]));});});},exports['UpdateVoiceCallReport']=function(_0x42b58a){const _0x1be01f=this;return new Promise(function(_0x1e6e90,_0x4ef142){const _0x10705c=a711_0x5ee2;return db['VoiceCallReport'][_0x10705c('0xd')](_0x42b58a['body'],{'raw':_0x42b58a[_0x10705c('0x11')]?_0x42b58a[_0x10705c('0x11')][_0x10705c('0xe')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x42b58a['options']?_0x42b58a['options']['where']||null:null,'attributes':_0x42b58a[_0x10705c('0x11')]?_0x42b58a[_0x10705c('0x11')][_0x10705c('0x8')]||null:null,'limit':_0x42b58a[_0x10705c('0x11')]?_0x42b58a[_0x10705c('0x11')][_0x10705c('0x1')]||null:null})[_0x10705c('0x12')](function(_0x3c41d3){const _0x69c795=_0x10705c;logger[_0x69c795('0x6')](_0x69c795('0x10'),_0x42b58a),logger[_0x69c795('0xb')](_0x69c795('0x10'),_0x42b58a,JSON[_0x69c795('0x3')](_0x3c41d3)),_0x1e6e90(_0x3c41d3);})[_0x10705c('0xa')](function(_0x28e038){const _0x490876=_0x10705c;logger[_0x490876('0x16')](_0x490876('0x10'),_0x28e038[_0x490876('0x2')],_0x42b58a),_0x4ef142(_0x1be01f[_0x490876('0x16')](0x1f4,_0x28e038[_0x490876('0x2')]));});});};
\ No newline at end of file
+const a711_0x1b0f=['message','GetVoiceCallReport','findAll','debug','CreateVoiceCallReport','error','catch','info','model','rpc','lodash','limit','map','options','body','UpdateVoiceCallReport','then','raw','stringify','VoiceCallReport','../../mysqldb','create','update','../../config/logger','where','attributes','include'];(function(_0x3865ed,_0x1b0f35){const _0x2979ca=function(_0x3d0b15){while(--_0x3d0b15){_0x3865ed['push'](_0x3865ed['shift']());}};_0x2979ca(++_0x1b0f35);}(a711_0x1b0f,0x105));const a711_0x2979=function(_0x3865ed,_0x1b0f35){_0x3865ed=_0x3865ed-0x0;let _0x2979ca=a711_0x1b0f[_0x3865ed];return _0x2979ca;};const _0x1d2696=a711_0x2979;'use strict';const _=require(_0x1d2696('0x13')),db=require(_0x1d2696('0x2'))['db'],logger=require(_0x1d2696('0x5'))(_0x1d2696('0x12'));exports['GetVoiceCallReport']=function(_0x3d0b15){const _0x19313e=this;return new Promise(function(_0x1670b,_0x556ec5){const _0x20b48e=a711_0x2979;return db[_0x20b48e('0x1')][_0x20b48e('0xb')]({'raw':_0x3d0b15[_0x20b48e('0x16')]?_0x3d0b15[_0x20b48e('0x16')][_0x20b48e('0x1a')]===undefined?!![]:![]:!![],'where':_0x3d0b15[_0x20b48e('0x16')]?_0x3d0b15[_0x20b48e('0x16')][_0x20b48e('0x6')]||null:null,'attributes':_0x3d0b15[_0x20b48e('0x16')]?_0x3d0b15[_0x20b48e('0x16')]['attributes']||null:null,'limit':_0x3d0b15['options']?_0x3d0b15[_0x20b48e('0x16')][_0x20b48e('0x14')]||null:null,'include':_0x3d0b15[_0x20b48e('0x16')]?_0x3d0b15[_0x20b48e('0x16')][_0x20b48e('0x8')]?_[_0x20b48e('0x15')](_0x3d0b15[_0x20b48e('0x16')][_0x20b48e('0x8')],function(_0xe6aad1){const _0x54907d=_0x20b48e;return{'model':db[_0xe6aad1[_0x54907d('0x11')]],'as':_0xe6aad1['as'],'attributes':_0xe6aad1['attributes'],'include':_0xe6aad1[_0x54907d('0x8')]?_[_0x54907d('0x15')](_0xe6aad1['include'],function(_0x3f340b){const _0x52b7e5=_0x54907d;return{'model':db[_0x3f340b[_0x52b7e5('0x11')]],'as':_0x3f340b['as'],'attributes':_0x3f340b[_0x52b7e5('0x7')],'include':_0x3f340b[_0x52b7e5('0x8')]?_[_0x52b7e5('0x15')](_0x3f340b[_0x52b7e5('0x8')],function(_0x1b004e){const _0x325013=_0x52b7e5;return{'model':db[_0x1b004e[_0x325013('0x11')]],'as':_0x1b004e['as'],'attributes':_0x1b004e[_0x325013('0x7')]};}):[]};}):[]};}):[]:[]})[_0x20b48e('0x19')](function(_0x25a827){const _0x5c1914=_0x20b48e;logger[_0x5c1914('0x10')](_0x5c1914('0xa'),_0x3d0b15),logger[_0x5c1914('0xc')](_0x5c1914('0xa'),_0x3d0b15,JSON[_0x5c1914('0x0')](_0x25a827)),_0x1670b(_0x25a827);})[_0x20b48e('0xf')](function(_0x760ee7){const _0x55ae35=_0x20b48e;logger[_0x55ae35('0xe')]('GetVoiceCallReport',_0x760ee7[_0x55ae35('0x9')],_0x3d0b15),_0x556ec5(_0x19313e[_0x55ae35('0xe')](0x1f4,_0x760ee7['message']));});});},exports[_0x1d2696('0xd')]=function(_0x1a50cf){const _0x34918b=this;return new Promise(function(_0x202775,_0x386288){const _0x18bfd6=a711_0x2979;return db[_0x18bfd6('0x1')][_0x18bfd6('0x3')](_0x1a50cf[_0x18bfd6('0x17')],{'raw':_0x1a50cf[_0x18bfd6('0x16')]?_0x1a50cf[_0x18bfd6('0x16')][_0x18bfd6('0x1a')]===undefined?!![]:![]:!![]})[_0x18bfd6('0x19')](function(_0x480378){const _0x4d566d=_0x18bfd6;logger[_0x4d566d('0x10')](_0x4d566d('0xd'),_0x1a50cf),logger[_0x4d566d('0xc')](_0x4d566d('0xd'),_0x1a50cf,JSON[_0x4d566d('0x0')](_0x480378)),_0x202775(_0x480378);})[_0x18bfd6('0xf')](function(_0x54e4f8){const _0x48e9b2=_0x18bfd6;logger[_0x48e9b2('0xe')](_0x48e9b2('0xd'),_0x54e4f8[_0x48e9b2('0x9')],_0x1a50cf),_0x386288(_0x34918b['error'](0x1f4,_0x54e4f8['message']));});});},exports['UpdateVoiceCallReport']=function(_0x48d6e6){const _0x5f2f35=this;return new Promise(function(_0x3a4181,_0x593c3f){const _0x29dbc7=a711_0x2979;return db['VoiceCallReport'][_0x29dbc7('0x4')](_0x48d6e6['body'],{'raw':_0x48d6e6[_0x29dbc7('0x16')]?_0x48d6e6[_0x29dbc7('0x16')]['raw']===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x48d6e6['options']?_0x48d6e6['options']['where']||null:null,'attributes':_0x48d6e6[_0x29dbc7('0x16')]?_0x48d6e6[_0x29dbc7('0x16')][_0x29dbc7('0x7')]||null:null,'limit':_0x48d6e6['options']?_0x48d6e6[_0x29dbc7('0x16')][_0x29dbc7('0x14')]||null:null})[_0x29dbc7('0x19')](function(_0x31e73d){const _0x503de9=_0x29dbc7;logger[_0x503de9('0x10')](_0x503de9('0x18'),_0x48d6e6),logger[_0x503de9('0xc')](_0x503de9('0x18'),_0x48d6e6,JSON['stringify'](_0x31e73d)),_0x3a4181(_0x31e73d);})[_0x29dbc7('0xf')](function(_0x29ea3e){const _0x10218d=_0x29dbc7;logger['error'](_0x10218d('0x18'),_0x29ea3e[_0x10218d('0x9')],_0x48d6e6),_0x593c3f(_0x5f2f35[_0x10218d('0xe')](0x1f4,_0x29ea3e[_0x10218d('0x9')]));});});};
\ No newline at end of file