Built motion from commit ecdc8e66766c75b1b08288b0ea13eb12d42606b4. Version 3.0.0...
[motion-next.git] / server / api / faxMessage / faxMessage.rpc.js
index 44e02f3..ac0c275 100644 (file)
@@ -1 +1 @@
-const a208_0x5547=['create','attributes','stringify','message','error','../../config/logger','../../mysqldb','info','debug','CreateFaxMessage','catch','body','UpdateFaxMessage','register','options','limit','../../rediscache','raw','FaxMessage','then','./faxMessage.socket'];(function(_0x388054,_0x5547f7){const _0x2c5ce9=function(_0x5e01e0){while(--_0x5e01e0){_0x388054['push'](_0x388054['shift']());}};_0x2c5ce9(++_0x5547f7);}(a208_0x5547,0xa2));const a208_0x2c5c=function(_0x388054,_0x5547f7){_0x388054=_0x388054-0x0;let _0x2c5ce9=a208_0x5547[_0x388054];return _0x2c5ce9;};const _0x5bbb48=a208_0x2c5c;'use strict';const db=require(_0x5bbb48('0xc'))['db'],logger=require(_0x5bbb48('0xb'))('rpc'),{getSocket}=require(_0x5bbb48('0x1')),socket=getSocket();require(_0x5bbb48('0x5'))[_0x5bbb48('0x13')](socket),exports[_0x5bbb48('0xf')]=function(_0x5e01e0){const _0x5dd2c1=this;return new Promise(function(_0x13b6b2,_0x374f88){const _0x4fb789=a208_0x2c5c;return db[_0x4fb789('0x3')][_0x4fb789('0x6')](_0x5e01e0[_0x4fb789('0x11')],{'raw':_0x5e01e0[_0x4fb789('0x14')]?_0x5e01e0[_0x4fb789('0x14')][_0x4fb789('0x2')]===undefined?!![]:![]:!![]})[_0x4fb789('0x4')](function(_0x5e6c92){const _0x5dacc3=_0x4fb789;logger['info'](_0x5dacc3('0xf'),_0x5e01e0),logger['debug'](_0x5dacc3('0xf'),_0x5e01e0,JSON['stringify'](_0x5e6c92)),_0x13b6b2(_0x5e6c92);})['catch'](function(_0x4e2c1c){const _0xf7dcb9=_0x4fb789;logger[_0xf7dcb9('0xa')](_0xf7dcb9('0xf'),_0x4e2c1c[_0xf7dcb9('0x9')],_0x5e01e0),_0x374f88(_0x5dd2c1[_0xf7dcb9('0xa')](0x1f4,_0x4e2c1c[_0xf7dcb9('0x9')]));});});},exports[_0x5bbb48('0x12')]=function(_0x5ef20c){const _0x42087b=this;return new Promise(function(_0x4f6193,_0x5247fc){const _0x3f2df8=a208_0x2c5c;return db[_0x3f2df8('0x3')]['update'](_0x5ef20c[_0x3f2df8('0x11')],{'raw':_0x5ef20c[_0x3f2df8('0x14')]?_0x5ef20c[_0x3f2df8('0x14')][_0x3f2df8('0x2')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x5ef20c['options']?_0x5ef20c[_0x3f2df8('0x14')]['where']||null:null,'attributes':_0x5ef20c[_0x3f2df8('0x14')]?_0x5ef20c[_0x3f2df8('0x14')][_0x3f2df8('0x7')]||null:null,'limit':_0x5ef20c[_0x3f2df8('0x14')]?_0x5ef20c[_0x3f2df8('0x14')][_0x3f2df8('0x0')]||null:null})[_0x3f2df8('0x4')](function(_0x5c4187){const _0x1e3e33=_0x3f2df8;logger[_0x1e3e33('0xd')](_0x1e3e33('0x12'),_0x5ef20c),logger[_0x1e3e33('0xe')](_0x1e3e33('0x12'),_0x5ef20c,JSON[_0x1e3e33('0x8')](_0x5c4187)),_0x4f6193(_0x5c4187);})[_0x3f2df8('0x10')](function(_0x217b8a){const _0x17d913=_0x3f2df8;logger[_0x17d913('0xa')](_0x17d913('0x12'),_0x217b8a[_0x17d913('0x9')],_0x5ef20c),_0x5247fc(_0x42087b[_0x17d913('0xa')](0x1f4,_0x217b8a[_0x17d913('0x9')]));});});};
\ No newline at end of file
+const a208_0x493e=['message','options','limit','UpdateFaxMessage','then','catch','info','register','../../config/logger','FaxMessage','debug','../../mysqldb','raw','./faxMessage.socket','update','../../rediscache','create','CreateFaxMessage','stringify','rpc','error','body'];(function(_0x5d3f48,_0x493efd){const _0x492b90=function(_0x4ade3a){while(--_0x4ade3a){_0x5d3f48['push'](_0x5d3f48['shift']());}};_0x492b90(++_0x493efd);}(a208_0x493e,0xdb));const a208_0x492b=function(_0x5d3f48,_0x493efd){_0x5d3f48=_0x5d3f48-0x0;let _0x492b90=a208_0x493e[_0x5d3f48];return _0x492b90;};const _0x267037=a208_0x492b;'use strict';const db=require(_0x267037('0xc'))['db'],logger=require(_0x267037('0x9'))(_0x267037('0x14')),{getSocket}=require(_0x267037('0x10')),socket=getSocket();require(_0x267037('0xe'))[_0x267037('0x8')](socket),exports[_0x267037('0x12')]=function(_0x4ade3a){const _0x3e3c93=this;return new Promise(function(_0x1e383e,_0x174f3f){const _0x4f07a2=a208_0x492b;return db['FaxMessage'][_0x4f07a2('0x11')](_0x4ade3a[_0x4f07a2('0x0')],{'raw':_0x4ade3a['options']?_0x4ade3a['options'][_0x4f07a2('0xd')]===undefined?!![]:![]:!![]})[_0x4f07a2('0x5')](function(_0x1ae021){const _0x4800bb=_0x4f07a2;logger[_0x4800bb('0x7')](_0x4800bb('0x12'),_0x4ade3a),logger['debug']('CreateFaxMessage',_0x4ade3a,JSON[_0x4800bb('0x13')](_0x1ae021)),_0x1e383e(_0x1ae021);})['catch'](function(_0x307a1d){const _0x224f36=_0x4f07a2;logger['error'](_0x224f36('0x12'),_0x307a1d[_0x224f36('0x1')],_0x4ade3a),_0x174f3f(_0x3e3c93[_0x224f36('0x15')](0x1f4,_0x307a1d[_0x224f36('0x1')]));});});},exports[_0x267037('0x4')]=function(_0x1f1816){const _0x5e8b62=this;return new Promise(function(_0x138318,_0x18e512){const _0x51c9d5=a208_0x492b;return db[_0x51c9d5('0xa')][_0x51c9d5('0xf')](_0x1f1816['body'],{'raw':_0x1f1816['options']?_0x1f1816[_0x51c9d5('0x2')][_0x51c9d5('0xd')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x1f1816[_0x51c9d5('0x2')]?_0x1f1816[_0x51c9d5('0x2')]['where']||null:null,'attributes':_0x1f1816['options']?_0x1f1816['options']['attributes']||null:null,'limit':_0x1f1816[_0x51c9d5('0x2')]?_0x1f1816[_0x51c9d5('0x2')][_0x51c9d5('0x3')]||null:null})[_0x51c9d5('0x5')](function(_0x4ed2bd){const _0x44be23=_0x51c9d5;logger['info'](_0x44be23('0x4'),_0x1f1816),logger[_0x44be23('0xb')](_0x44be23('0x4'),_0x1f1816,JSON['stringify'](_0x4ed2bd)),_0x138318(_0x4ed2bd);})[_0x51c9d5('0x6')](function(_0xcea949){const _0x455994=_0x51c9d5;logger[_0x455994('0x15')](_0x455994('0x4'),_0xcea949[_0x455994('0x1')],_0x1f1816),_0x18e512(_0x5e8b62[_0x455994('0x15')](0x1f4,_0xcea949['message']));});});};
\ No newline at end of file