Built motion from commit 8dca541896b0ff92bb88a36cc13f4f385b593b4b. Version 3.0.0...
[motion-next.git] / server / api / voiceAgentReport / voiceAgentReport.rpc.js
1 const a706_0x2afd=['attributes','body','options','rpc','update','raw','then','where','error','CreateVoiceAgentReport','message','../../config/logger','debug','limit','catch','VoiceAgentReport','create','UpdateVoiceAgentReport','info'];(function(_0x5a8d86,_0x2afdc2){const _0x30d5c3=function(_0x5a9098){while(--_0x5a9098){_0x5a8d86['push'](_0x5a8d86['shift']());}};_0x30d5c3(++_0x2afdc2);}(a706_0x2afd,0x84));const a706_0x30d5=function(_0x5a8d86,_0x2afdc2){_0x5a8d86=_0x5a8d86-0x0;let _0x30d5c3=a706_0x2afd[_0x5a8d86];return _0x30d5c3;};const _0x1a1bec=a706_0x30d5;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0x1a1bec('0xc'))(_0x1a1bec('0x4'));exports[_0x1a1bec('0xa')]=function(_0x5a9098){const _0x46cd21=this;return new Promise(function(_0x522a8a,_0x3dfe14){const _0x46ead8=a706_0x30d5;return db[_0x46ead8('0x10')][_0x46ead8('0x11')](_0x5a9098[_0x46ead8('0x2')],{'raw':_0x5a9098[_0x46ead8('0x3')]?_0x5a9098[_0x46ead8('0x3')][_0x46ead8('0x6')]===undefined?!![]:![]:!![]})[_0x46ead8('0x7')](function(_0x31baf5){const _0x15225e=_0x46ead8;logger['info'](_0x15225e('0xa'),_0x5a9098),logger['debug'](_0x15225e('0xa'),_0x5a9098,JSON['stringify'](_0x31baf5)),_0x522a8a(_0x31baf5);})['catch'](function(_0x3ab401){const _0x4307da=_0x46ead8;logger['error'](_0x4307da('0xa'),_0x3ab401[_0x4307da('0xb')],_0x5a9098),_0x3dfe14(_0x46cd21[_0x4307da('0x9')](0x1f4,_0x3ab401[_0x4307da('0xb')]));});});},exports[_0x1a1bec('0x12')]=function(_0x5e635f){const _0x2c072e=this;return new Promise(function(_0x574ace,_0x1293ab){const _0x10c065=a706_0x30d5;return db[_0x10c065('0x10')][_0x10c065('0x5')](_0x5e635f['body'],{'raw':_0x5e635f[_0x10c065('0x3')]?_0x5e635f[_0x10c065('0x3')]['raw']===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x5e635f[_0x10c065('0x3')]?_0x5e635f[_0x10c065('0x3')][_0x10c065('0x8')]||null:null,'attributes':_0x5e635f['options']?_0x5e635f['options'][_0x10c065('0x1')]||null:null,'limit':_0x5e635f[_0x10c065('0x3')]?_0x5e635f[_0x10c065('0x3')][_0x10c065('0xe')]||null:null})[_0x10c065('0x7')](function(_0x52a5fc){const _0x50b3b3=_0x10c065;logger[_0x50b3b3('0x0')](_0x50b3b3('0x12'),_0x5e635f),logger[_0x50b3b3('0xd')]('UpdateVoiceAgentReport',_0x5e635f,JSON['stringify'](_0x52a5fc)),_0x574ace(_0x52a5fc);})[_0x10c065('0xf')](function(_0x5ad6b1){const _0x1de082=_0x10c065;logger[_0x1de082('0x9')]('UpdateVoiceAgentReport',_0x5ad6b1[_0x1de082('0xb')],_0x5e635f),_0x1293ab(_0x2c072e[_0x1de082('0x9')](0x1f4,_0x5ad6b1[_0x1de082('0xb')]));});});};