Built motion from commit a9fb64cc6defd8fb3a5cc199221f878e91c0e969. Version 3.0.0...
[motion-next.git] / server / api / squareReportDetail / squareReportDetail.rpc.js
1 const a617_0x4cf6=['SquareDetailsReport','CreateSquareDetailsReport','../../mysqldb','then','message','create','error','info','options','rpc','catch','raw','debug','../../config/logger'];(function(_0x40df87,_0x4cf682){const _0x290405=function(_0x3243ad){while(--_0x3243ad){_0x40df87['push'](_0x40df87['shift']());}};_0x290405(++_0x4cf682);}(a617_0x4cf6,0x1d7));const a617_0x2904=function(_0x40df87,_0x4cf682){_0x40df87=_0x40df87-0x0;let _0x290405=a617_0x4cf6[_0x40df87];return _0x290405;};const _0x14d100=a617_0x2904;'use strict';const db=require(_0x14d100('0x7'))['db'],logger=require(_0x14d100('0x4'))(_0x14d100('0x0'));exports[_0x14d100('0x6')]=function(_0x3243ad){const _0x2846bc=this;return new Promise(function(_0x48d86c,_0x122859){const _0x12a5f3=a617_0x2904;return db[_0x12a5f3('0x5')][_0x12a5f3('0xa')](_0x3243ad['body'],{'raw':_0x3243ad[_0x12a5f3('0xd')]?_0x3243ad['options'][_0x12a5f3('0x2')]===undefined?!![]:![]:!![]})[_0x12a5f3('0x8')](function(_0x184fa3){const _0x45bd51=_0x12a5f3;logger[_0x45bd51('0xc')]('CreateSquareDetailsReport',_0x3243ad),logger[_0x45bd51('0x3')](_0x45bd51('0x6'),_0x3243ad,JSON['stringify'](_0x184fa3)),_0x48d86c(_0x184fa3);})[_0x12a5f3('0x1')](function(_0x185332){const _0x6d8778=_0x12a5f3;logger[_0x6d8778('0xb')](_0x6d8778('0x6'),_0x185332[_0x6d8778('0x9')],_0x3243ad),_0x122859(_0x2846bc[_0x6d8778('0xb')](0x1f4,_0x185332['message']));});});};