Built motion from commit 4a18b36e645f5fa4a517d36f9783bde259878164. Version 3.0.0...
[motion-next.git] / server / api / reportAgentPreview / reportAgentPreview.rpc.js
1 const a525_0x123e=['stringify','message','error','../../mysqldb','then','debug','ReportAgentPreview','create','raw','body','CreateReportAgentPreview','options','catch','rpc'];(function(_0x3a8810,_0x123ea6){const _0x3e7a0c=function(_0x586346){while(--_0x586346){_0x3a8810['push'](_0x3a8810['shift']());}};_0x3e7a0c(++_0x123ea6);}(a525_0x123e,0xc3));const a525_0x3e7a=function(_0x3a8810,_0x123ea6){_0x3a8810=_0x3a8810-0x0;let _0x3e7a0c=a525_0x123e[_0x3a8810];return _0x3e7a0c;};const _0x2c2a77=a525_0x3e7a;'use strict';const db=require(_0x2c2a77('0x4'))['db'],logger=require('../../config/logger')(_0x2c2a77('0x0'));exports['CreateReportAgentPreview']=function(_0x586346){const _0x12000a=this;return new Promise(function(_0x1a066b,_0x448f1d){const _0x3c50f9=a525_0x3e7a;return db[_0x3c50f9('0x7')][_0x3c50f9('0x8')](_0x586346[_0x3c50f9('0xa')],{'raw':_0x586346[_0x3c50f9('0xc')]?_0x586346[_0x3c50f9('0xc')][_0x3c50f9('0x9')]===undefined?!![]:![]:!![]})[_0x3c50f9('0x5')](function(_0x4dc28b){const _0x51c200=_0x3c50f9;logger['info'](_0x51c200('0xb'),_0x586346),logger[_0x51c200('0x6')](_0x51c200('0xb'),_0x586346,JSON[_0x51c200('0x1')](_0x4dc28b)),_0x1a066b(_0x4dc28b);})[_0x3c50f9('0xd')](function(_0x208380){const _0x53c740=_0x3c50f9;logger[_0x53c740('0x3')](_0x53c740('0xb'),_0x208380[_0x53c740('0x2')],_0x586346),_0x448f1d(_0x12000a[_0x53c740('0x3')](0x1f4,_0x208380[_0x53c740('0x2')]));});});};