Built motion from commit ded33658aad58fc8de845a8299a9db59a88cc353. Version 3.0.0...
[motion-next.git] / server / api / mailApplication / mailApplication.rpc.js
index 1845870..26a4a0d 100644 (file)
@@ -1 +1 @@
-const a403_0x5b9c=['limit','../../config/logger','options','rpc','info','stringify','UpdateMailApplication','where','body','error','then','debug','raw'];(function(_0x398982,_0x5b9ca9){const _0x3393f8=function(_0x1fb29a){while(--_0x1fb29a){_0x398982['push'](_0x398982['shift']());}};_0x3393f8(++_0x5b9ca9);}(a403_0x5b9c,0x114));const a403_0x3393=function(_0x398982,_0x5b9ca9){_0x398982=_0x398982-0x0;let _0x3393f8=a403_0x5b9c[_0x398982];return _0x3393f8;};const _0x4719a3=a403_0x3393;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0x4719a3('0xb'))(_0x4719a3('0x0'));exports['UpdateMailApplication']=function(_0x1fb29a){const _0x53fc62=this;return new Promise(function(_0x39cc6f,_0x43f216){const _0xa7fae5=a403_0x3393;return db['MailApplication']['update'](_0x1fb29a[_0xa7fae5('0x5')],{'raw':_0x1fb29a[_0xa7fae5('0xc')]?_0x1fb29a[_0xa7fae5('0xc')][_0xa7fae5('0x9')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x1fb29a[_0xa7fae5('0xc')]?_0x1fb29a[_0xa7fae5('0xc')][_0xa7fae5('0x4')]||null:null,'attributes':_0x1fb29a[_0xa7fae5('0xc')]?_0x1fb29a['options']['attributes']||null:null,'limit':_0x1fb29a[_0xa7fae5('0xc')]?_0x1fb29a[_0xa7fae5('0xc')][_0xa7fae5('0xa')]||null:null})[_0xa7fae5('0x7')](function(_0x291964){const _0x3ae868=_0xa7fae5;logger[_0x3ae868('0x1')](_0x3ae868('0x3'),_0x1fb29a),logger[_0x3ae868('0x8')](_0x3ae868('0x3'),_0x1fb29a,JSON[_0x3ae868('0x2')](_0x291964)),_0x39cc6f(_0x291964);})['catch'](function(_0x47e08a){const _0x83fa25=_0xa7fae5;logger[_0x83fa25('0x6')]('UpdateMailApplication',_0x47e08a['message'],_0x1fb29a),_0x43f216(_0x53fc62[_0x83fa25('0x6')](0x1f4,_0x47e08a['message']));});});};
\ No newline at end of file
+const a403_0x1268=['message','options','catch','attributes','../../mysqldb','error','then','limit','UpdateMailApplication','update','stringify','../../config/logger','debug'];(function(_0x550641,_0x1268f5){const _0x3f31d9=function(_0x1df391){while(--_0x1df391){_0x550641['push'](_0x550641['shift']());}};_0x3f31d9(++_0x1268f5);}(a403_0x1268,0x99));const a403_0x3f31=function(_0x550641,_0x1268f5){_0x550641=_0x550641-0x0;let _0x3f31d9=a403_0x1268[_0x550641];return _0x3f31d9;};const _0x4cc65a=a403_0x3f31;'use strict';const db=require(_0x4cc65a('0x7'))['db'],logger=require(_0x4cc65a('0x1'))('rpc');exports[_0x4cc65a('0xb')]=function(_0x1df391){const _0x2e4a55=this;return new Promise(function(_0x2a670b,_0x56935c){const _0x33e538=a403_0x3f31;return db['MailApplication'][_0x33e538('0xc')](_0x1df391['body'],{'raw':_0x1df391['options']?_0x1df391[_0x33e538('0x4')]['raw']===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x1df391['options']?_0x1df391[_0x33e538('0x4')]['where']||null:null,'attributes':_0x1df391[_0x33e538('0x4')]?_0x1df391[_0x33e538('0x4')][_0x33e538('0x6')]||null:null,'limit':_0x1df391[_0x33e538('0x4')]?_0x1df391[_0x33e538('0x4')][_0x33e538('0xa')]||null:null})[_0x33e538('0x9')](function(_0xcede48){const _0x5cf5cd=_0x33e538;logger['info'](_0x5cf5cd('0xb'),_0x1df391),logger[_0x5cf5cd('0x2')](_0x5cf5cd('0xb'),_0x1df391,JSON[_0x5cf5cd('0x0')](_0xcede48)),_0x2a670b(_0xcede48);})[_0x33e538('0x5')](function(_0x292734){const _0x39760e=_0x33e538;logger[_0x39760e('0x8')](_0x39760e('0xb'),_0x292734[_0x39760e('0x3')],_0x1df391),_0x56935c(_0x2e4a55[_0x39760e('0x8')](0x1f4,_0x292734[_0x39760e('0x3')]));});});};
\ No newline at end of file