Built motion from commit a9fb64cc6defd8fb3a5cc199221f878e91c0e969. Version 3.0.0...
[motion-next.git] / server / api / voiceAgentReport / voiceAgentReport.rpc.js
index 15de03c..04f597e 100644 (file)
@@ -1 +1 @@
-const a706_0x57ac=['raw','body','rpc','debug','stringify','info','message','update','catch','error','limit','options','VoiceAgentReport','../../config/logger','then','UpdateVoiceAgentReport','attributes','CreateVoiceAgentReport'];(function(_0x16c0ff,_0x57ac7c){const _0x42d36a=function(_0x14a310){while(--_0x14a310){_0x16c0ff['push'](_0x16c0ff['shift']());}};_0x42d36a(++_0x57ac7c);}(a706_0x57ac,0xe4));const a706_0x42d3=function(_0x16c0ff,_0x57ac7c){_0x16c0ff=_0x16c0ff-0x0;let _0x42d36a=a706_0x57ac[_0x16c0ff];return _0x42d36a;};const _0x2c65d7=a706_0x42d3;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0x2c65d7('0x1'))(_0x2c65d7('0x8'));exports[_0x2c65d7('0x5')]=function(_0x14a310){const _0x41e912=this;return new Promise(function(_0x20bb4c,_0x48b251){const _0x37b08a=a706_0x42d3;return db['VoiceAgentReport']['create'](_0x14a310[_0x37b08a('0x7')],{'raw':_0x14a310['options']?_0x14a310[_0x37b08a('0x11')][_0x37b08a('0x6')]===undefined?!![]:![]:!![]})[_0x37b08a('0x2')](function(_0x3fd989){const _0x844df=_0x37b08a;logger['info'](_0x844df('0x5'),_0x14a310),logger[_0x844df('0x9')]('CreateVoiceAgentReport',_0x14a310,JSON[_0x844df('0xa')](_0x3fd989)),_0x20bb4c(_0x3fd989);})[_0x37b08a('0xe')](function(_0x550ac8){const _0x5a38d5=_0x37b08a;logger['error'](_0x5a38d5('0x5'),_0x550ac8['message'],_0x14a310),_0x48b251(_0x41e912[_0x5a38d5('0xf')](0x1f4,_0x550ac8[_0x5a38d5('0xc')]));});});},exports[_0x2c65d7('0x3')]=function(_0x81459b){const _0x25dcba=this;return new Promise(function(_0xffae47,_0x1a7cc7){const _0x24c64c=a706_0x42d3;return db[_0x24c64c('0x0')][_0x24c64c('0xd')](_0x81459b[_0x24c64c('0x7')],{'raw':_0x81459b[_0x24c64c('0x11')]?_0x81459b[_0x24c64c('0x11')][_0x24c64c('0x6')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x81459b['options']?_0x81459b[_0x24c64c('0x11')]['where']||null:null,'attributes':_0x81459b['options']?_0x81459b[_0x24c64c('0x11')][_0x24c64c('0x4')]||null:null,'limit':_0x81459b[_0x24c64c('0x11')]?_0x81459b['options'][_0x24c64c('0x10')]||null:null})[_0x24c64c('0x2')](function(_0xd11206){const _0x3d1081=_0x24c64c;logger[_0x3d1081('0xb')]('UpdateVoiceAgentReport',_0x81459b),logger[_0x3d1081('0x9')](_0x3d1081('0x3'),_0x81459b,JSON[_0x3d1081('0xa')](_0xd11206)),_0xffae47(_0xd11206);})[_0x24c64c('0xe')](function(_0x22c42a){const _0x519c6a=_0x24c64c;logger[_0x519c6a('0xf')](_0x519c6a('0x3'),_0x22c42a[_0x519c6a('0xc')],_0x81459b),_0x1a7cc7(_0x25dcba[_0x519c6a('0xf')](0x1f4,_0x22c42a[_0x519c6a('0xc')]));});});};
\ No newline at end of file
+const a706_0x5ec6=['stringify','body','UpdateVoiceAgentReport','catch','update','error','message','where','../../config/logger','info','CreateVoiceAgentReport','create','debug','rpc','attributes','limit','options','raw','../../mysqldb','then'];(function(_0x499cce,_0x5ec604){const _0x1b3b7e=function(_0x54f541){while(--_0x54f541){_0x499cce['push'](_0x499cce['shift']());}};_0x1b3b7e(++_0x5ec604);}(a706_0x5ec6,0x1ca));const a706_0x1b3b=function(_0x499cce,_0x5ec604){_0x499cce=_0x499cce-0x0;let _0x1b3b7e=a706_0x5ec6[_0x499cce];return _0x1b3b7e;};const _0x5b29bc=a706_0x1b3b;'use strict';const db=require(_0x5b29bc('0x0'))['db'],logger=require(_0x5b29bc('0xa'))(_0x5b29bc('0xf'));exports[_0x5b29bc('0xc')]=function(_0x54f541){const _0x6401dc=this;return new Promise(function(_0xb5095c,_0x4e6bbf){const _0x2004bb=a706_0x1b3b;return db['VoiceAgentReport'][_0x2004bb('0xd')](_0x54f541[_0x2004bb('0x3')],{'raw':_0x54f541[_0x2004bb('0x12')]?_0x54f541[_0x2004bb('0x12')]['raw']===undefined?!![]:![]:!![]})[_0x2004bb('0x1')](function(_0xdc3cd9){const _0x4847c6=_0x2004bb;logger[_0x4847c6('0xb')](_0x4847c6('0xc'),_0x54f541),logger[_0x4847c6('0xe')](_0x4847c6('0xc'),_0x54f541,JSON[_0x4847c6('0x2')](_0xdc3cd9)),_0xb5095c(_0xdc3cd9);})[_0x2004bb('0x5')](function(_0x30215d){const _0x365fbf=_0x2004bb;logger[_0x365fbf('0x7')](_0x365fbf('0xc'),_0x30215d[_0x365fbf('0x8')],_0x54f541),_0x4e6bbf(_0x6401dc[_0x365fbf('0x7')](0x1f4,_0x30215d['message']));});});},exports[_0x5b29bc('0x4')]=function(_0x53d816){const _0x5369a7=this;return new Promise(function(_0x4657d9,_0x427a75){const _0x1bf5ae=a706_0x1b3b;return db['VoiceAgentReport'][_0x1bf5ae('0x6')](_0x53d816[_0x1bf5ae('0x3')],{'raw':_0x53d816[_0x1bf5ae('0x12')]?_0x53d816[_0x1bf5ae('0x12')][_0x1bf5ae('0x13')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x53d816[_0x1bf5ae('0x12')]?_0x53d816[_0x1bf5ae('0x12')][_0x1bf5ae('0x9')]||null:null,'attributes':_0x53d816[_0x1bf5ae('0x12')]?_0x53d816[_0x1bf5ae('0x12')][_0x1bf5ae('0x10')]||null:null,'limit':_0x53d816[_0x1bf5ae('0x12')]?_0x53d816[_0x1bf5ae('0x12')][_0x1bf5ae('0x11')]||null:null})[_0x1bf5ae('0x1')](function(_0x5b455a){const _0x5b3e8c=_0x1bf5ae;logger[_0x5b3e8c('0xb')]('UpdateVoiceAgentReport',_0x53d816),logger[_0x5b3e8c('0xe')](_0x5b3e8c('0x4'),_0x53d816,JSON[_0x5b3e8c('0x2')](_0x5b455a)),_0x4657d9(_0x5b455a);})['catch'](function(_0x35dfec){const _0x3658c7=_0x1bf5ae;logger[_0x3658c7('0x7')](_0x3658c7('0x4'),_0x35dfec[_0x3658c7('0x8')],_0x53d816),_0x427a75(_0x5369a7[_0x3658c7('0x7')](0x1f4,_0x35dfec[_0x3658c7('0x8')]));});});};
\ No newline at end of file