Built motion from commit 459747fdfe53bbf13fbede61eeaffea1f1438f86. Version 3.0.0...
[motion-next.git] / server / api / reportAgentPreview / reportAgentPreview.rpc.js
index 46e55c5..e736d1f 100644 (file)
@@ -1 +1 @@
-const a525_0x1b32=['CreateReportAgentPreview','../../mysqldb','debug','then','message','options','stringify','create','rpc','catch'];(function(_0x21ff55,_0x1b32f8){const _0x3334ea=function(_0x5833b2){while(--_0x5833b2){_0x21ff55['push'](_0x21ff55['shift']());}};_0x3334ea(++_0x1b32f8);}(a525_0x1b32,0x1ab));const a525_0x3334=function(_0x21ff55,_0x1b32f8){_0x21ff55=_0x21ff55-0x0;let _0x3334ea=a525_0x1b32[_0x21ff55];return _0x3334ea;};const _0x41ca74=a525_0x3334;'use strict';const db=require(_0x41ca74('0x4'))['db'],logger=require('../../config/logger')(_0x41ca74('0x1'));exports['CreateReportAgentPreview']=function(_0x5833b2){const _0x19f1e7=this;return new Promise(function(_0xa1ce82,_0x4f5c75){const _0x425314=a525_0x3334;return db['ReportAgentPreview'][_0x425314('0x0')](_0x5833b2['body'],{'raw':_0x5833b2[_0x425314('0x8')]?_0x5833b2[_0x425314('0x8')]['raw']===undefined?!![]:![]:!![]})[_0x425314('0x6')](function(_0x1ca9ad){const _0x25b609=_0x425314;logger['info']('CreateReportAgentPreview',_0x5833b2),logger[_0x25b609('0x5')](_0x25b609('0x3'),_0x5833b2,JSON[_0x25b609('0x9')](_0x1ca9ad)),_0xa1ce82(_0x1ca9ad);})[_0x425314('0x2')](function(_0x289ea0){const _0x97bdf5=_0x425314;logger['error'](_0x97bdf5('0x3'),_0x289ea0[_0x97bdf5('0x7')],_0x5833b2),_0x4f5c75(_0x19f1e7['error'](0x1f4,_0x289ea0[_0x97bdf5('0x7')]));});});};
\ No newline at end of file
+const a525_0x2f4a=['message','body','../../mysqldb','stringify','debug','then','CreateReportAgentPreview','../../config/logger','create','error','catch'];(function(_0x33e7b5,_0x2f4aba){const _0x4cbc37=function(_0x582fb0){while(--_0x582fb0){_0x33e7b5['push'](_0x33e7b5['shift']());}};_0x4cbc37(++_0x2f4aba);}(a525_0x2f4a,0x139));const a525_0x4cbc=function(_0x33e7b5,_0x2f4aba){_0x33e7b5=_0x33e7b5-0x0;let _0x4cbc37=a525_0x2f4a[_0x33e7b5];return _0x4cbc37;};const _0x3a29d5=a525_0x4cbc;'use strict';const db=require(_0x3a29d5('0x8'))['db'],logger=require(_0x3a29d5('0x2'))('rpc');exports['CreateReportAgentPreview']=function(_0x582fb0){const _0x3d2da6=this;return new Promise(function(_0x9d9981,_0x58be94){const _0x3ceaff=a525_0x4cbc;return db['ReportAgentPreview'][_0x3ceaff('0x3')](_0x582fb0[_0x3ceaff('0x7')],{'raw':_0x582fb0['options']?_0x582fb0['options']['raw']===undefined?!![]:![]:!![]})[_0x3ceaff('0x0')](function(_0x2482fb){const _0x17aa64=_0x3ceaff;logger['info'](_0x17aa64('0x1'),_0x582fb0),logger[_0x17aa64('0xa')](_0x17aa64('0x1'),_0x582fb0,JSON[_0x17aa64('0x9')](_0x2482fb)),_0x9d9981(_0x2482fb);})[_0x3ceaff('0x5')](function(_0xaf8830){const _0x43a984=_0x3ceaff;logger[_0x43a984('0x4')](_0x43a984('0x1'),_0xaf8830[_0x43a984('0x6')],_0x582fb0),_0x58be94(_0x3d2da6['error'](0x1f4,_0xaf8830['message']));});});};
\ No newline at end of file