Built motion from commit be44e1e4d16f8b29d243415b03d27262d8601e0e. Version 3.0.0...
[motion-next.git] / server / api / mailApplication / mailApplication.rpc.js
1 const a403_0x291a=['stringify','body','options','debug','attributes','update','error','rpc','../../config/logger','message','then','MailApplication','UpdateMailApplication'];(function(_0x48f208,_0x291a91){const _0x387abc=function(_0x153671){while(--_0x153671){_0x48f208['push'](_0x48f208['shift']());}};_0x387abc(++_0x291a91);}(a403_0x291a,0x17a));const a403_0x387a=function(_0x48f208,_0x291a91){_0x48f208=_0x48f208-0x0;let _0x387abc=a403_0x291a[_0x48f208];return _0x387abc;};const _0x50e27f=a403_0x387a;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0x50e27f('0x7'))(_0x50e27f('0x6'));exports[_0x50e27f('0xb')]=function(_0x153671){const _0x2ae3e3=this;return new Promise(function(_0x52fa60,_0x6c014c){const _0x10cb8a=a403_0x387a;return db[_0x10cb8a('0xa')][_0x10cb8a('0x4')](_0x153671[_0x10cb8a('0x0')],{'raw':_0x153671[_0x10cb8a('0x1')]?_0x153671[_0x10cb8a('0x1')]['raw']===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x153671['options']?_0x153671[_0x10cb8a('0x1')]['where']||null:null,'attributes':_0x153671['options']?_0x153671['options'][_0x10cb8a('0x3')]||null:null,'limit':_0x153671['options']?_0x153671['options']['limit']||null:null})[_0x10cb8a('0x9')](function(_0x6edf28){const _0x301f61=_0x10cb8a;logger['info'](_0x301f61('0xb'),_0x153671),logger[_0x301f61('0x2')](_0x301f61('0xb'),_0x153671,JSON[_0x301f61('0xc')](_0x6edf28)),_0x52fa60(_0x6edf28);})['catch'](function(_0x3faf90){const _0x518c56=_0x10cb8a;logger['error'](_0x518c56('0xb'),_0x3faf90[_0x518c56('0x8')],_0x153671),_0x6c014c(_0x2ae3e3[_0x518c56('0x5')](0x1f4,_0x3faf90[_0x518c56('0x8')]));});});};