d5fd267fa1caad1c49cb925eeee7cf31e40073f2
[motion-next.git] / server / api / mailQueueReport / mailQueueReport.rpc.js
1 const a429_0x50ab=['UpdateMailQueueReport','create','attributes','message','../../config/logger','../../mysqldb','rpc','then','options','debug','update','limit','stringify','info','where','MailQueueReport','CreateMailQueueReport','catch','raw','body','error'];(function(_0x54838a,_0x50ab75){const _0xf7ee2=function(_0x33db09){while(--_0x33db09){_0x54838a['push'](_0x54838a['shift']());}};_0xf7ee2(++_0x50ab75);}(a429_0x50ab,0x9e));const a429_0xf7ee=function(_0x54838a,_0x50ab75){_0x54838a=_0x54838a-0x0;let _0xf7ee2=a429_0x50ab[_0x54838a];return _0xf7ee2;};const _0x785a39=a429_0xf7ee;'use strict';const db=require(_0x785a39('0xf'))['db'],logger=require(_0x785a39('0xe'))(_0x785a39('0x10'));exports[_0x785a39('0x5')]=function(_0x33db09){const _0x520cc3=this;return new Promise(function(_0x1e5160,_0x1912c6){const _0x4c7ea0=a429_0xf7ee;return db[_0x4c7ea0('0x4')][_0x4c7ea0('0xb')](_0x33db09[_0x4c7ea0('0x8')],{'raw':_0x33db09['options']?_0x33db09['options'][_0x4c7ea0('0x7')]===undefined?!![]:![]:!![]})['then'](function(_0x27070c){const _0x3bdeb2=_0x4c7ea0;logger['info']('CreateMailQueueReport',_0x33db09),logger[_0x3bdeb2('0x13')]('CreateMailQueueReport',_0x33db09,JSON[_0x3bdeb2('0x1')](_0x27070c)),_0x1e5160(_0x27070c);})[_0x4c7ea0('0x6')](function(_0x39d52a){const _0x120a05=_0x4c7ea0;logger[_0x120a05('0x9')](_0x120a05('0x5'),_0x39d52a['message'],_0x33db09),_0x1912c6(_0x520cc3[_0x120a05('0x9')](0x1f4,_0x39d52a[_0x120a05('0xd')]));});});},exports[_0x785a39('0xa')]=function(_0x102e48){const _0x2c0c34=this;return new Promise(function(_0x3ae5cb,_0x42d493){const _0x4d33ed=a429_0xf7ee;return db[_0x4d33ed('0x4')][_0x4d33ed('0x14')](_0x102e48[_0x4d33ed('0x8')],{'raw':_0x102e48[_0x4d33ed('0x12')]?_0x102e48[_0x4d33ed('0x12')][_0x4d33ed('0x7')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x102e48['options']?_0x102e48['options'][_0x4d33ed('0x3')]||null:null,'attributes':_0x102e48[_0x4d33ed('0x12')]?_0x102e48['options'][_0x4d33ed('0xc')]||null:null,'limit':_0x102e48[_0x4d33ed('0x12')]?_0x102e48[_0x4d33ed('0x12')][_0x4d33ed('0x0')]||null:null})[_0x4d33ed('0x11')](function(_0xe6e1ef){const _0x56a769=_0x4d33ed;logger[_0x56a769('0x2')](_0x56a769('0xa'),_0x102e48),logger[_0x56a769('0x13')](_0x56a769('0xa'),_0x102e48,JSON[_0x56a769('0x1')](_0xe6e1ef)),_0x3ae5cb(_0xe6e1ef);})['catch'](function(_0x37fb11){const _0x57c735=_0x4d33ed;logger[_0x57c735('0x9')](_0x57c735('0xa'),_0x37fb11[_0x57c735('0xd')],_0x102e48),_0x42d493(_0x2c0c34['error'](0x1f4,_0x37fb11['message']));});});};