Built motion from commit ecdc8e66766c75b1b08288b0ea13eb12d42606b4. Version 3.0.0...
[motion-next.git] / server / api / attachment / attachment.rpc.js
index 2045431..017741c 100644 (file)
@@ -1 +1 @@
-const a31_0x44f5=['options','raw','catch','create','debug','Attachment','error','body','CreateAttachment','info','message','stringify','../../mysqldb'];(function(_0x3b9654,_0x44f530){const _0x44ad89=function(_0x43e26b){while(--_0x43e26b){_0x3b9654['push'](_0x3b9654['shift']());}};_0x44ad89(++_0x44f530);}(a31_0x44f5,0x10d));const a31_0x44ad=function(_0x3b9654,_0x44f530){_0x3b9654=_0x3b9654-0x0;let _0x44ad89=a31_0x44f5[_0x3b9654];return _0x44ad89;};const _0x57cbf6=a31_0x44ad;'use strict';const db=require(_0x57cbf6('0x3'))['db'],logger=require('../../config/logger')('rpc');exports['CreateAttachment']=function(_0x43e26b){const _0x51a200=this;return new Promise(function(_0x59768d,_0x47267d){const _0x503c88=a31_0x44ad;return db[_0x503c88('0x9')][_0x503c88('0x7')](_0x43e26b[_0x503c88('0xb')],{'raw':_0x43e26b['options']?_0x43e26b[_0x503c88('0x4')][_0x503c88('0x5')]===undefined?!![]:![]:!![]})['then'](function(_0x17e385){const _0x36e670=_0x503c88;logger[_0x36e670('0x0')]('CreateAttachment',_0x43e26b),logger[_0x36e670('0x8')](_0x36e670('0xc'),_0x43e26b,JSON[_0x36e670('0x2')](_0x17e385)),_0x59768d(_0x17e385);})[_0x503c88('0x6')](function(_0x1b50bc){const _0x179a45=_0x503c88;logger[_0x179a45('0xa')]('CreateAttachment',_0x1b50bc[_0x179a45('0x1')],_0x43e26b),_0x47267d(_0x51a200['error'](0x1f4,_0x1b50bc[_0x179a45('0x1')]));});});};
\ No newline at end of file
+const a31_0x4dc9=['stringify','message','catch','rpc','options','info','../../config/logger','body','then','CreateAttachment','error','debug'];(function(_0x4b84a0,_0x4dc9d6){const _0x214c71=function(_0x503e2a){while(--_0x503e2a){_0x4b84a0['push'](_0x4b84a0['shift']());}};_0x214c71(++_0x4dc9d6);}(a31_0x4dc9,0x15f));const a31_0x214c=function(_0x4b84a0,_0x4dc9d6){_0x4b84a0=_0x4b84a0-0x0;let _0x214c71=a31_0x4dc9[_0x4b84a0];return _0x214c71;};const _0x25a584=a31_0x214c;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0x25a584('0x3'))(_0x25a584('0x0'));exports[_0x25a584('0x6')]=function(_0x503e2a){const _0x1f7fbf=this;return new Promise(function(_0x35be5d,_0x3cca40){const _0x367bce=a31_0x214c;return db['Attachment']['create'](_0x503e2a[_0x367bce('0x4')],{'raw':_0x503e2a[_0x367bce('0x1')]?_0x503e2a['options']['raw']===undefined?!![]:![]:!![]})[_0x367bce('0x5')](function(_0xd9a8a4){const _0x46ed3d=_0x367bce;logger[_0x46ed3d('0x2')](_0x46ed3d('0x6'),_0x503e2a),logger[_0x46ed3d('0x8')](_0x46ed3d('0x6'),_0x503e2a,JSON[_0x46ed3d('0x9')](_0xd9a8a4)),_0x35be5d(_0xd9a8a4);})[_0x367bce('0xb')](function(_0x4a3ecf){const _0x1a43f1=_0x367bce;logger[_0x1a43f1('0x7')](_0x1a43f1('0x6'),_0x4a3ecf[_0x1a43f1('0xa')],_0x503e2a),_0x3cca40(_0x1f7fbf[_0x1a43f1('0x7')](0x1f4,_0x4a3ecf['message']));});});};
\ No newline at end of file