Built motion from commit c49361c37b5f784889c8087ac6e0e91b7e6b561a. Version 3.0.0...
[motion-next.git] / server / api / reportAgentPreview / reportAgentPreview.rpc.js
1 const a525_0x4c72=['../../mysqldb','message','ReportAgentPreview','rpc','then','error','create','body','options','CreateReportAgentPreview'];(function(_0x591895,_0x4c7219){const _0x1898cd=function(_0x2d5264){while(--_0x2d5264){_0x591895['push'](_0x591895['shift']());}};_0x1898cd(++_0x4c7219);}(a525_0x4c72,0x1e6));const a525_0x1898=function(_0x591895,_0x4c7219){_0x591895=_0x591895-0x0;let _0x1898cd=a525_0x4c72[_0x591895];return _0x1898cd;};const _0x373653=a525_0x1898;'use strict';const db=require(_0x373653('0x4'))['db'],logger=require('../../config/logger')(_0x373653('0x7'));exports[_0x373653('0x3')]=function(_0x2d5264){const _0x270a2b=this;return new Promise(function(_0x2139fa,_0x57a997){const _0x23f3ac=a525_0x1898;return db[_0x23f3ac('0x6')][_0x23f3ac('0x0')](_0x2d5264[_0x23f3ac('0x1')],{'raw':_0x2d5264[_0x23f3ac('0x2')]?_0x2d5264[_0x23f3ac('0x2')]['raw']===undefined?!![]:![]:!![]})[_0x23f3ac('0x8')](function(_0x4e93e0){logger['info']('CreateReportAgentPreview',_0x2d5264),logger['debug']('CreateReportAgentPreview',_0x2d5264,JSON['stringify'](_0x4e93e0)),_0x2139fa(_0x4e93e0);})['catch'](function(_0xaa276f){const _0x40be29=_0x23f3ac;logger[_0x40be29('0x9')](_0x40be29('0x3'),_0xaa276f[_0x40be29('0x5')],_0x2d5264),_0x57a997(_0x270a2b[_0x40be29('0x9')](0x1f4,_0xaa276f[_0x40be29('0x5')]));});});};