Built motion from commit f738f9592c388b9f9eb3948f400a5c9d717a3561. Version 3.0.0...
[motion-next.git] / server / api / faxMessage / faxMessage.rpc.js
index d916654..4efdadc 100644 (file)
@@ -1 +1 @@
-const a248_0x475d=['error','options','raw','CreateFaxMessage','./faxMessage.socket','info','then','rpc','body','catch','message','../../rediscache','where','update','stringify','debug','../../config/logger','create','FaxMessage','UpdateFaxMessage'];(function(_0x156652,_0x2d3ed3){const _0x475d09=function(_0x1a8377){while(--_0x1a8377){_0x156652['push'](_0x156652['shift']());}};_0x475d09(++_0x2d3ed3);}(a248_0x475d,0x17e));const a248_0x1a83=function(_0x156652,_0x2d3ed3){_0x156652=_0x156652-0x1d5;let _0x475d09=a248_0x475d[_0x156652];return _0x475d09;};const a248_0xf7671d=a248_0x1a83;'use strict';const db=require('../../mysqldb')['db'],logger=require(a248_0xf7671d(0x1e3))(a248_0xf7671d(0x1da)),{getSocket}=require(a248_0xf7671d(0x1de)),socket=getSocket();require(a248_0xf7671d(0x1d7))['register'](socket),exports['CreateFaxMessage']=function(_0x511696){const _0x2ae742=this;return new Promise(function(_0x7de8d,_0x2886c8){const _0x1679ca=a248_0x1a83;return db['FaxMessage'][_0x1679ca(0x1e4)](_0x511696[_0x1679ca(0x1db)],{'raw':_0x511696[_0x1679ca(0x1e8)]?_0x511696[_0x1679ca(0x1e8)][_0x1679ca(0x1d5)]===undefined?!![]:![]:!![]})[_0x1679ca(0x1d9)](function(_0x453887){const _0x12ee4c=_0x1679ca;logger[_0x12ee4c(0x1d8)]('CreateFaxMessage',_0x511696),logger[_0x12ee4c(0x1e2)](_0x12ee4c(0x1d6),_0x511696,JSON[_0x12ee4c(0x1e1)](_0x453887)),_0x7de8d(_0x453887);})[_0x1679ca(0x1dc)](function(_0xea0084){const _0x430085=_0x1679ca;logger[_0x430085(0x1e7)](_0x430085(0x1d6),_0xea0084['message'],_0x511696),_0x2886c8(_0x2ae742['error'](0x1f4,_0xea0084[_0x430085(0x1dd)]));});});},exports[a248_0xf7671d(0x1e6)]=function(_0x2da359){const _0x2cb47c=this;return new Promise(function(_0x4c7816,_0x26c612){const _0x843ede=a248_0x1a83;return db[_0x843ede(0x1e5)][_0x843ede(0x1e0)](_0x2da359[_0x843ede(0x1db)],{'raw':_0x2da359['options']?_0x2da359[_0x843ede(0x1e8)]['raw']===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x2da359[_0x843ede(0x1e8)]?_0x2da359[_0x843ede(0x1e8)][_0x843ede(0x1df)]||null:null,'attributes':_0x2da359[_0x843ede(0x1e8)]?_0x2da359[_0x843ede(0x1e8)]['attributes']||null:null,'limit':_0x2da359[_0x843ede(0x1e8)]?_0x2da359[_0x843ede(0x1e8)]['limit']||null:null})['then'](function(_0x2f489f){const _0x1636d3=_0x843ede;logger[_0x1636d3(0x1d8)]('UpdateFaxMessage',_0x2da359),logger[_0x1636d3(0x1e2)]('UpdateFaxMessage',_0x2da359,JSON['stringify'](_0x2f489f)),_0x4c7816(_0x2f489f);})['catch'](function(_0xbd0673){const _0x32e9a0=_0x843ede;logger[_0x32e9a0(0x1e7)](_0x32e9a0(0x1e6),_0xbd0673[_0x32e9a0(0x1dd)],_0x2da359),_0x26c612(_0x2cb47c[_0x32e9a0(0x1e7)](0x1f4,_0xbd0673[_0x32e9a0(0x1dd)]));});});};
\ No newline at end of file
+const a248_0x1748=['../../config/logger','FaxMessage','body','limit','update','register','CreateFaxMessage','where','debug','catch','message','attributes','rpc','../../mysqldb','stringify','error','then','../../rediscache','options','UpdateFaxMessage','create','info'];(function(_0x19e656,_0x308e4b){const _0x174844=function(_0x1db186){while(--_0x1db186){_0x19e656['push'](_0x19e656['shift']());}};_0x174844(++_0x308e4b);}(a248_0x1748,0xc2));const a248_0x1db1=function(_0x19e656,_0x308e4b){_0x19e656=_0x19e656-0x135;let _0x174844=a248_0x1748[_0x19e656];return _0x174844;};const a248_0x27dac2=a248_0x1db1;'use strict';const db=require(a248_0x27dac2(0x146))['db'],logger=require(a248_0x27dac2(0x139))(a248_0x27dac2(0x145)),{getSocket}=require(a248_0x27dac2(0x14a)),socket=getSocket();require('./faxMessage.socket')[a248_0x27dac2(0x13e)](socket),exports[a248_0x27dac2(0x13f)]=function(_0x1087a1){const _0x448621=this;return new Promise(function(_0x5a112b,_0x444370){const _0x12e786=a248_0x1db1;return db[_0x12e786(0x13a)][_0x12e786(0x137)](_0x1087a1[_0x12e786(0x13b)],{'raw':_0x1087a1[_0x12e786(0x135)]?_0x1087a1[_0x12e786(0x135)]['raw']===undefined?!![]:![]:!![]})[_0x12e786(0x149)](function(_0x1cd62b){const _0xa6e194=_0x12e786;logger['info']('CreateFaxMessage',_0x1087a1),logger[_0xa6e194(0x141)]('CreateFaxMessage',_0x1087a1,JSON[_0xa6e194(0x147)](_0x1cd62b)),_0x5a112b(_0x1cd62b);})[_0x12e786(0x142)](function(_0x1d6205){const _0x1add0c=_0x12e786;logger[_0x1add0c(0x148)](_0x1add0c(0x13f),_0x1d6205[_0x1add0c(0x143)],_0x1087a1),_0x444370(_0x448621['error'](0x1f4,_0x1d6205[_0x1add0c(0x143)]));});});},exports[a248_0x27dac2(0x136)]=function(_0x1e380c){const _0x467f3f=this;return new Promise(function(_0x49eca1,_0x1d2c84){const _0x5432d6=a248_0x1db1;return db[_0x5432d6(0x13a)][_0x5432d6(0x13d)](_0x1e380c['body'],{'raw':_0x1e380c[_0x5432d6(0x135)]?_0x1e380c['options']['raw']===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x1e380c[_0x5432d6(0x135)]?_0x1e380c['options'][_0x5432d6(0x140)]||null:null,'attributes':_0x1e380c[_0x5432d6(0x135)]?_0x1e380c['options'][_0x5432d6(0x144)]||null:null,'limit':_0x1e380c[_0x5432d6(0x135)]?_0x1e380c[_0x5432d6(0x135)][_0x5432d6(0x13c)]||null:null})[_0x5432d6(0x149)](function(_0x498b69){const _0x379736=_0x5432d6;logger[_0x379736(0x138)]('UpdateFaxMessage',_0x1e380c),logger[_0x379736(0x141)]('UpdateFaxMessage',_0x1e380c,JSON[_0x379736(0x147)](_0x498b69)),_0x49eca1(_0x498b69);})[_0x5432d6(0x142)](function(_0xe5be19){const _0x1de0f6=_0x5432d6;logger[_0x1de0f6(0x148)]('UpdateFaxMessage',_0xe5be19[_0x1de0f6(0x143)],_0x1e380c),_0x1d2c84(_0x467f3f[_0x1de0f6(0x148)](0x1f4,_0xe5be19[_0x1de0f6(0x143)]));});});};
\ No newline at end of file