Built motion from commit ded33658aad58fc8de845a8299a9db59a88cc353. Version 3.0.0...
[motion-next.git] / server / api / faxMessage / faxMessage.rpc.js
index 5f9807c..319d41b 100644 (file)
@@ -1 +1 @@
-const a208_0x2fda=['body','info','then','register','update','message','error','debug','rpc','create','where','FaxMessage','./faxMessage.socket','CreateFaxMessage','options','UpdateFaxMessage','limit','stringify','raw','attributes'];(function(_0x1ea115,_0x2fda8f){const _0x2517eb=function(_0x51c5dc){while(--_0x51c5dc){_0x1ea115['push'](_0x1ea115['shift']());}};_0x2517eb(++_0x2fda8f);}(a208_0x2fda,0x10a));const a208_0x2517=function(_0x1ea115,_0x2fda8f){_0x1ea115=_0x1ea115-0x0;let _0x2517eb=a208_0x2fda[_0x1ea115];return _0x2517eb;};const _0x2c5243=a208_0x2517;'use strict';const db=require('../../mysqldb')['db'],logger=require('../../config/logger')(_0x2c5243('0x2')),{getSocket}=require('../../rediscache'),socket=getSocket();require(_0x2c5243('0x6'))[_0x2c5243('0x11')](socket),exports[_0x2c5243('0x7')]=function(_0x51c5dc){const _0xcbca76=this;return new Promise(function(_0x4c4bca,_0x140ecd){const _0x47b7c6=a208_0x2517;return db['FaxMessage'][_0x47b7c6('0x3')](_0x51c5dc['body'],{'raw':_0x51c5dc[_0x47b7c6('0x8')]?_0x51c5dc[_0x47b7c6('0x8')][_0x47b7c6('0xc')]===undefined?!![]:![]:!![]})[_0x47b7c6('0x10')](function(_0x3678aa){const _0x3b0e89=_0x47b7c6;logger[_0x3b0e89('0xf')](_0x3b0e89('0x7'),_0x51c5dc),logger[_0x3b0e89('0x1')](_0x3b0e89('0x7'),_0x51c5dc,JSON[_0x3b0e89('0xb')](_0x3678aa)),_0x4c4bca(_0x3678aa);})['catch'](function(_0x1fae50){const _0x17c4b8=_0x47b7c6;logger[_0x17c4b8('0x0')](_0x17c4b8('0x7'),_0x1fae50[_0x17c4b8('0x13')],_0x51c5dc),_0x140ecd(_0xcbca76[_0x17c4b8('0x0')](0x1f4,_0x1fae50[_0x17c4b8('0x13')]));});});},exports[_0x2c5243('0x9')]=function(_0x3371b2){const _0x2f2245=this;return new Promise(function(_0x4ee321,_0xab658d){const _0x5a09a2=a208_0x2517;return db[_0x5a09a2('0x5')][_0x5a09a2('0x12')](_0x3371b2[_0x5a09a2('0xe')],{'raw':_0x3371b2[_0x5a09a2('0x8')]?_0x3371b2[_0x5a09a2('0x8')]['raw']===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x3371b2['options']?_0x3371b2['options'][_0x5a09a2('0x4')]||null:null,'attributes':_0x3371b2[_0x5a09a2('0x8')]?_0x3371b2[_0x5a09a2('0x8')][_0x5a09a2('0xd')]||null:null,'limit':_0x3371b2[_0x5a09a2('0x8')]?_0x3371b2[_0x5a09a2('0x8')][_0x5a09a2('0xa')]||null:null})['then'](function(_0xc8bf6c){const _0x265bff=_0x5a09a2;logger[_0x265bff('0xf')]('UpdateFaxMessage',_0x3371b2),logger[_0x265bff('0x1')](_0x265bff('0x9'),_0x3371b2,JSON['stringify'](_0xc8bf6c)),_0x4ee321(_0xc8bf6c);})['catch'](function(_0x2e8cfb){const _0x299fbc=_0x5a09a2;logger['error'](_0x299fbc('0x9'),_0x2e8cfb['message'],_0x3371b2),_0xab658d(_0x2f2245['error'](0x1f4,_0x2e8cfb[_0x299fbc('0x13')]));});});};
\ No newline at end of file
+const a208_0x387a=['then','../../config/logger','rpc','stringify','update','register','catch','message','../../mysqldb','attributes','../../rediscache','options','body','UpdateFaxMessage','CreateFaxMessage','limit','FaxMessage','./faxMessage.socket','create','info','error','raw','debug'];(function(_0x371741,_0x387a86){const _0x127baa=function(_0x5a5de5){while(--_0x5a5de5){_0x371741['push'](_0x371741['shift']());}};_0x127baa(++_0x387a86);}(a208_0x387a,0x11f));const a208_0x127b=function(_0x371741,_0x387a86){_0x371741=_0x371741-0x0;let _0x127baa=a208_0x387a[_0x371741];return _0x127baa;};const _0x38f895=a208_0x127b;'use strict';const db=require(_0x38f895('0x14'))['db'],logger=require(_0x38f895('0xd'))(_0x38f895('0xe')),{getSocket}=require(_0x38f895('0x16')),socket=getSocket();require(_0x38f895('0x6'))[_0x38f895('0x11')](socket),exports['CreateFaxMessage']=function(_0x5a5de5){const _0x316f00=this;return new Promise(function(_0x27ae22,_0xccad2c){const _0x4fcfd0=a208_0x127b;return db[_0x4fcfd0('0x5')][_0x4fcfd0('0x7')](_0x5a5de5['body'],{'raw':_0x5a5de5[_0x4fcfd0('0x0')]?_0x5a5de5[_0x4fcfd0('0x0')]['raw']===undefined?!![]:![]:!![]})[_0x4fcfd0('0xc')](function(_0x472853){const _0x7d744e=_0x4fcfd0;logger[_0x7d744e('0x8')](_0x7d744e('0x3'),_0x5a5de5),logger[_0x7d744e('0xb')](_0x7d744e('0x3'),_0x5a5de5,JSON[_0x7d744e('0xf')](_0x472853)),_0x27ae22(_0x472853);})['catch'](function(_0xed51f7){const _0x45dd0c=_0x4fcfd0;logger[_0x45dd0c('0x9')](_0x45dd0c('0x3'),_0xed51f7[_0x45dd0c('0x13')],_0x5a5de5),_0xccad2c(_0x316f00[_0x45dd0c('0x9')](0x1f4,_0xed51f7[_0x45dd0c('0x13')]));});});},exports[_0x38f895('0x2')]=function(_0x2970a7){const _0x33dfbc=this;return new Promise(function(_0xb4127,_0x1e560a){const _0x460c23=a208_0x127b;return db['FaxMessage'][_0x460c23('0x10')](_0x2970a7[_0x460c23('0x1')],{'raw':_0x2970a7['options']?_0x2970a7[_0x460c23('0x0')][_0x460c23('0xa')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x2970a7[_0x460c23('0x0')]?_0x2970a7['options']['where']||null:null,'attributes':_0x2970a7[_0x460c23('0x0')]?_0x2970a7[_0x460c23('0x0')][_0x460c23('0x15')]||null:null,'limit':_0x2970a7[_0x460c23('0x0')]?_0x2970a7['options'][_0x460c23('0x4')]||null:null})[_0x460c23('0xc')](function(_0x422e52){const _0x4c4d6b=_0x460c23;logger[_0x4c4d6b('0x8')]('UpdateFaxMessage',_0x2970a7),logger[_0x4c4d6b('0xb')]('UpdateFaxMessage',_0x2970a7,JSON[_0x4c4d6b('0xf')](_0x422e52)),_0xb4127(_0x422e52);})[_0x460c23('0x12')](function(_0x1b6780){const _0x3c9663=_0x460c23;logger[_0x3c9663('0x9')](_0x3c9663('0x2'),_0x1b6780[_0x3c9663('0x13')],_0x2970a7),_0x1e560a(_0x33dfbc[_0x3c9663('0x9')](0x1f4,_0x1b6780['message']));});});};
\ No newline at end of file