Built motion from commit f738f9592c388b9f9eb3948f400a5c9d717a3561. Version 3.0.0...
[motion-next.git] / server / api / mailQueueReport / mailQueueReport.rpc.js
1 const a516_0x4667=['rpc','catch','then','UpdateMailQueueReport','options','update','stringify','../../config/logger','CreateMailQueueReport','MailQueueReport','info','body','error','raw','debug','attributes','../../mysqldb','where','message'];(function(_0x7c6a68,_0x58a442){const _0x4667c8=function(_0x2f2990){while(--_0x2f2990){_0x7c6a68['push'](_0x7c6a68['shift']());}};_0x4667c8(++_0x58a442);}(a516_0x4667,0xe6));const a516_0x2f29=function(_0x7c6a68,_0x58a442){_0x7c6a68=_0x7c6a68-0xc6;let _0x4667c8=a516_0x4667[_0x7c6a68];return _0x4667c8;};const a516_0x1b8168=a516_0x2f29;'use strict';const db=require(a516_0x1b8168(0xd4))['db'],logger=require(a516_0x1b8168(0xcb))(a516_0x1b8168(0xd7));exports['CreateMailQueueReport']=function(_0x4f836a){const _0x1e7669=this;return new Promise(function(_0x9c05e,_0x51178e){const _0x106863=a516_0x2f29;return db[_0x106863(0xcd)]['create'](_0x4f836a[_0x106863(0xcf)],{'raw':_0x4f836a['options']?_0x4f836a[_0x106863(0xc8)][_0x106863(0xd1)]===undefined?!![]:![]:!![]})[_0x106863(0xc6)](function(_0x1b4a8c){const _0x44042e=_0x106863;logger[_0x44042e(0xce)](_0x44042e(0xcc),_0x4f836a),logger['debug'](_0x44042e(0xcc),_0x4f836a,JSON[_0x44042e(0xca)](_0x1b4a8c)),_0x9c05e(_0x1b4a8c);})[_0x106863(0xd8)](function(_0x5e5091){const _0x149703=_0x106863;logger[_0x149703(0xd0)](_0x149703(0xcc),_0x5e5091[_0x149703(0xd6)],_0x4f836a),_0x51178e(_0x1e7669[_0x149703(0xd0)](0x1f4,_0x5e5091[_0x149703(0xd6)]));});});},exports['UpdateMailQueueReport']=function(_0x414364){const _0x533d83=this;return new Promise(function(_0x30e874,_0x311e0d){const _0x3f9c62=a516_0x2f29;return db['MailQueueReport'][_0x3f9c62(0xc9)](_0x414364[_0x3f9c62(0xcf)],{'raw':_0x414364['options']?_0x414364[_0x3f9c62(0xc8)][_0x3f9c62(0xd1)]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x414364[_0x3f9c62(0xc8)]?_0x414364[_0x3f9c62(0xc8)][_0x3f9c62(0xd5)]||null:null,'attributes':_0x414364['options']?_0x414364[_0x3f9c62(0xc8)][_0x3f9c62(0xd3)]||null:null,'limit':_0x414364[_0x3f9c62(0xc8)]?_0x414364[_0x3f9c62(0xc8)]['limit']||null:null})[_0x3f9c62(0xc6)](function(_0x4e4eea){const _0xb5b38=_0x3f9c62;logger[_0xb5b38(0xce)]('UpdateMailQueueReport',_0x414364),logger[_0xb5b38(0xd2)](_0xb5b38(0xc7),_0x414364,JSON['stringify'](_0x4e4eea)),_0x30e874(_0x4e4eea);})['catch'](function(_0x404406){const _0x428f7d=_0x3f9c62;logger[_0x428f7d(0xd0)](_0x428f7d(0xc7),_0x404406[_0x428f7d(0xd6)],_0x414364),_0x311e0d(_0x533d83[_0x428f7d(0xd0)](0x1f4,_0x404406['message']));});});};