Built motion from commit 4a18b36e645f5fa4a517d36f9783bde259878164. Version 3.0.0...
[motion-next.git] / server / api / voiceAgentReport / voiceAgentReport.rpc.js
index d625d51..947aba0 100644 (file)
@@ -1 +1 @@
-const a706_0x2b42=['where','info','body','attributes','error','VoiceAgentReport','CreateVoiceAgentReport','../../config/logger','raw','debug','../../mysqldb','message','UpdateVoiceAgentReport','options','then','catch','stringify','update'];(function(_0x5effd4,_0x2b4265){const _0x8e04e=function(_0x36bed1){while(--_0x36bed1){_0x5effd4['push'](_0x5effd4['shift']());}};_0x8e04e(++_0x2b4265);}(a706_0x2b42,0x6f));const a706_0x8e04=function(_0x5effd4,_0x2b4265){_0x5effd4=_0x5effd4-0x0;let _0x8e04e=a706_0x2b42[_0x5effd4];return _0x8e04e;};const _0x23a784=a706_0x8e04;'use strict';const db=require(_0x23a784('0x7'))['db'],logger=require(_0x23a784('0x4'))('rpc');exports['CreateVoiceAgentReport']=function(_0x36bed1){const _0x1dd200=this;return new Promise(function(_0x5b299b,_0x432a15){const _0x258c3f=a706_0x8e04;return db[_0x258c3f('0x2')]['create'](_0x36bed1[_0x258c3f('0x11')],{'raw':_0x36bed1[_0x258c3f('0xa')]?_0x36bed1[_0x258c3f('0xa')][_0x258c3f('0x5')]===undefined?!![]:![]:!![]})[_0x258c3f('0xb')](function(_0x1daf4a){const _0x4eb45b=_0x258c3f;logger[_0x4eb45b('0x10')](_0x4eb45b('0x3'),_0x36bed1),logger[_0x4eb45b('0x6')](_0x4eb45b('0x3'),_0x36bed1,JSON['stringify'](_0x1daf4a)),_0x5b299b(_0x1daf4a);})[_0x258c3f('0xc')](function(_0x390e8a){const _0xa4ae5f=_0x258c3f;logger['error'](_0xa4ae5f('0x3'),_0x390e8a[_0xa4ae5f('0x8')],_0x36bed1),_0x432a15(_0x1dd200['error'](0x1f4,_0x390e8a[_0xa4ae5f('0x8')]));});});},exports[_0x23a784('0x9')]=function(_0x23c88d){const _0x7ae0b4=this;return new Promise(function(_0x13f383,_0x1c0214){const _0x24a6f7=a706_0x8e04;return db[_0x24a6f7('0x2')][_0x24a6f7('0xe')](_0x23c88d[_0x24a6f7('0x11')],{'raw':_0x23c88d[_0x24a6f7('0xa')]?_0x23c88d[_0x24a6f7('0xa')][_0x24a6f7('0x5')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x23c88d[_0x24a6f7('0xa')]?_0x23c88d[_0x24a6f7('0xa')][_0x24a6f7('0xf')]||null:null,'attributes':_0x23c88d[_0x24a6f7('0xa')]?_0x23c88d[_0x24a6f7('0xa')][_0x24a6f7('0x0')]||null:null,'limit':_0x23c88d[_0x24a6f7('0xa')]?_0x23c88d[_0x24a6f7('0xa')]['limit']||null:null})[_0x24a6f7('0xb')](function(_0x57a167){const _0x3f2717=_0x24a6f7;logger[_0x3f2717('0x10')](_0x3f2717('0x9'),_0x23c88d),logger[_0x3f2717('0x6')](_0x3f2717('0x9'),_0x23c88d,JSON[_0x3f2717('0xd')](_0x57a167)),_0x13f383(_0x57a167);})['catch'](function(_0x3d7021){const _0x186faa=_0x24a6f7;logger[_0x186faa('0x1')](_0x186faa('0x9'),_0x3d7021[_0x186faa('0x8')],_0x23c88d),_0x1c0214(_0x7ae0b4[_0x186faa('0x1')](0x1f4,_0x3d7021[_0x186faa('0x8')]));});});};
\ No newline at end of file
+const a706_0x566e=['create','attributes','info','options','raw','catch','message','where','rpc','limit','CreateVoiceAgentReport','stringify','debug','../../config/logger','body','UpdateVoiceAgentReport','then','../../mysqldb','VoiceAgentReport','error'];(function(_0x3ca3ac,_0x566eb2){const _0x560b6c=function(_0x600dd3){while(--_0x600dd3){_0x3ca3ac['push'](_0x3ca3ac['shift']());}};_0x560b6c(++_0x566eb2);}(a706_0x566e,0x15b));const a706_0x560b=function(_0x3ca3ac,_0x566eb2){_0x3ca3ac=_0x3ca3ac-0x0;let _0x560b6c=a706_0x566e[_0x3ca3ac];return _0x560b6c;};const _0x4b3de6=a706_0x560b;'use strict';const db=require(_0x4b3de6('0xa'))['db'],logger=require(_0x4b3de6('0x6'))(_0x4b3de6('0x1'));exports[_0x4b3de6('0x3')]=function(_0x600dd3){const _0x585d91=this;return new Promise(function(_0x57256e,_0x2b97e1){const _0x41268e=a706_0x560b;return db[_0x41268e('0xb')][_0x41268e('0xd')](_0x600dd3[_0x41268e('0x7')],{'raw':_0x600dd3[_0x41268e('0x10')]?_0x600dd3['options'][_0x41268e('0x11')]===undefined?!![]:![]:!![]})['then'](function(_0x334f71){const _0x3e5045=_0x41268e;logger[_0x3e5045('0xf')](_0x3e5045('0x3'),_0x600dd3),logger[_0x3e5045('0x5')](_0x3e5045('0x3'),_0x600dd3,JSON['stringify'](_0x334f71)),_0x57256e(_0x334f71);})['catch'](function(_0x322bee){const _0x51f032=_0x41268e;logger[_0x51f032('0xc')](_0x51f032('0x3'),_0x322bee[_0x51f032('0x13')],_0x600dd3),_0x2b97e1(_0x585d91[_0x51f032('0xc')](0x1f4,_0x322bee[_0x51f032('0x13')]));});});},exports[_0x4b3de6('0x8')]=function(_0x241e7b){const _0x3bc6f6=this;return new Promise(function(_0x30b7c4,_0x41a2ff){const _0x1460ab=a706_0x560b;return db[_0x1460ab('0xb')]['update'](_0x241e7b[_0x1460ab('0x7')],{'raw':_0x241e7b[_0x1460ab('0x10')]?_0x241e7b['options'][_0x1460ab('0x11')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x241e7b['options']?_0x241e7b[_0x1460ab('0x10')][_0x1460ab('0x0')]||null:null,'attributes':_0x241e7b['options']?_0x241e7b['options'][_0x1460ab('0xe')]||null:null,'limit':_0x241e7b[_0x1460ab('0x10')]?_0x241e7b[_0x1460ab('0x10')][_0x1460ab('0x2')]||null:null})[_0x1460ab('0x9')](function(_0x4a9a83){const _0x72a770=_0x1460ab;logger[_0x72a770('0xf')]('UpdateVoiceAgentReport',_0x241e7b),logger['debug'](_0x72a770('0x8'),_0x241e7b,JSON[_0x72a770('0x4')](_0x4a9a83)),_0x30b7c4(_0x4a9a83);})[_0x1460ab('0x12')](function(_0x3e4aea){const _0x3de5f6=_0x1460ab;logger['error']('UpdateVoiceAgentReport',_0x3e4aea[_0x3de5f6('0x13')],_0x241e7b),_0x41a2ff(_0x3bc6f6[_0x3de5f6('0xc')](0x1f4,_0x3e4aea['message']));});});};
\ No newline at end of file