Built motion from commit 82a371561bcdbc7605c801e5e414f4032ba9e7ad. Version 3.0.0...
[motion-next.git] / server / api / mailQueueReport / mailQueueReport.rpc.js
1 const a429_0x2aef=['options','error','info','UpdateMailQueueReport','limit','MailQueueReport','update','debug','message','then','stringify','CreateMailQueueReport','raw','body','rpc','../../config/logger','catch','attributes'];(function(_0x2ffdbc,_0x2aef8f){const _0x42a27d=function(_0x1be5b6){while(--_0x1be5b6){_0x2ffdbc['push'](_0x2ffdbc['shift']());}};_0x42a27d(++_0x2aef8f);}(a429_0x2aef,0x1b8));const a429_0x42a2=function(_0x2ffdbc,_0x2aef8f){_0x2ffdbc=_0x2ffdbc-0x0;let _0x42a27d=a429_0x2aef[_0x2ffdbc];return _0x42a27d;};const _0x2c22f3=a429_0x42a2;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0x2c22f3('0x7'))(_0x2c22f3('0x6'));exports[_0x2c22f3('0x3')]=function(_0x1be5b6){const _0x158a8a=this;return new Promise(function(_0x25b6ec,_0x28832b){const _0x49e54c=a429_0x42a2;return db[_0x49e54c('0xf')]['create'](_0x1be5b6[_0x49e54c('0x5')],{'raw':_0x1be5b6['options']?_0x1be5b6['options'][_0x49e54c('0x4')]===undefined?!![]:![]:!![]})[_0x49e54c('0x1')](function(_0x128e5f){const _0x49a262=_0x49e54c;logger[_0x49a262('0xc')](_0x49a262('0x3'),_0x1be5b6),logger[_0x49a262('0x11')](_0x49a262('0x3'),_0x1be5b6,JSON[_0x49a262('0x2')](_0x128e5f)),_0x25b6ec(_0x128e5f);})[_0x49e54c('0x8')](function(_0x1383bd){const _0x4a1e71=_0x49e54c;logger[_0x4a1e71('0xb')]('CreateMailQueueReport',_0x1383bd[_0x4a1e71('0x0')],_0x1be5b6),_0x28832b(_0x158a8a[_0x4a1e71('0xb')](0x1f4,_0x1383bd[_0x4a1e71('0x0')]));});});},exports[_0x2c22f3('0xd')]=function(_0x36c344){const _0x58d509=this;return new Promise(function(_0x20b530,_0x559648){const _0x52bc5c=a429_0x42a2;return db[_0x52bc5c('0xf')][_0x52bc5c('0x10')](_0x36c344['body'],{'raw':_0x36c344[_0x52bc5c('0xa')]?_0x36c344[_0x52bc5c('0xa')][_0x52bc5c('0x4')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x36c344[_0x52bc5c('0xa')]?_0x36c344[_0x52bc5c('0xa')]['where']||null:null,'attributes':_0x36c344['options']?_0x36c344[_0x52bc5c('0xa')][_0x52bc5c('0x9')]||null:null,'limit':_0x36c344[_0x52bc5c('0xa')]?_0x36c344[_0x52bc5c('0xa')][_0x52bc5c('0xe')]||null:null})[_0x52bc5c('0x1')](function(_0x28232c){const _0x51e7a7=_0x52bc5c;logger[_0x51e7a7('0xc')](_0x51e7a7('0xd'),_0x36c344),logger[_0x51e7a7('0x11')](_0x51e7a7('0xd'),_0x36c344,JSON[_0x51e7a7('0x2')](_0x28232c)),_0x20b530(_0x28232c);})[_0x52bc5c('0x8')](function(_0x4f4e20){const _0x2c52fd=_0x52bc5c;logger['error']('UpdateMailQueueReport',_0x4f4e20[_0x2c52fd('0x0')],_0x36c344),_0x559648(_0x58d509['error'](0x1f4,_0x4f4e20[_0x2c52fd('0x0')]));});});};