Built motion from commit 362b9399b4d0ed5560fbb795af995925d345fc38. Version 3.0.0...
[motion-next.git] / server / api / mailApplication / mailApplication.rpc.js
1 const a486_0x27dd=['stringify','limit','info','rpc','attributes','options','then','UpdateMailApplication','debug','message','../../config/logger','../../mysqldb','error','where','body'];(function(_0x39801b,_0x1f274){const _0x27dd32=function(_0x1ac14f){while(--_0x1ac14f){_0x39801b['push'](_0x39801b['shift']());}};_0x27dd32(++_0x1f274);}(a486_0x27dd,0x119));const a486_0x1ac1=function(_0x39801b,_0x1f274){_0x39801b=_0x39801b-0xa1;let _0x27dd32=a486_0x27dd[_0x39801b];return _0x27dd32;};const a486_0x3f9fb5=a486_0x1ac1;'use strict';const db=require(a486_0x3f9fb5(0xa1))['db'],logger=require(a486_0x3f9fb5(0xaf))(a486_0x3f9fb5(0xa8));exports['UpdateMailApplication']=function(_0x266fdd){const _0x2f60ca=this;return new Promise(function(_0x33080a,_0x99ba3){const _0x536a7c=a486_0x1ac1;return db['MailApplication']['update'](_0x266fdd[_0x536a7c(0xa4)],{'raw':_0x266fdd[_0x536a7c(0xaa)]?_0x266fdd[_0x536a7c(0xaa)]['raw']===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x266fdd[_0x536a7c(0xaa)]?_0x266fdd[_0x536a7c(0xaa)][_0x536a7c(0xa3)]||null:null,'attributes':_0x266fdd[_0x536a7c(0xaa)]?_0x266fdd[_0x536a7c(0xaa)][_0x536a7c(0xa9)]||null:null,'limit':_0x266fdd[_0x536a7c(0xaa)]?_0x266fdd[_0x536a7c(0xaa)][_0x536a7c(0xa6)]||null:null})[_0x536a7c(0xab)](function(_0x1625ff){const _0x39062=_0x536a7c;logger[_0x39062(0xa7)](_0x39062(0xac),_0x266fdd),logger[_0x39062(0xad)](_0x39062(0xac),_0x266fdd,JSON[_0x39062(0xa5)](_0x1625ff)),_0x33080a(_0x1625ff);})['catch'](function(_0x346c13){const _0x1491a2=_0x536a7c;logger['error'](_0x1491a2(0xac),_0x346c13[_0x1491a2(0xae)],_0x266fdd),_0x99ba3(_0x2f60ca[_0x1491a2(0xa2)](0x1f4,_0x346c13['message']));});});};