Built motion from commit f861bcb808219e66da88ba48b61bddb35224a65e. Version 3.0.0...
[motion-next.git] / server / api / faxMessage / faxMessage.rpc.js
1 'use strict';const a248_0x3b80=['debug','where','limit','889788DHPtRF','FaxMessage','update','933278MYRluW','catch','CreateFaxMessage','info','964791DtHjeJ','stringify','1wxXeQA','body','options','UpdateFaxMessage','@rediscache','127xvKTao','3369qYdCzk','raw','6862cHboJG','then','995205XxxaUy','message','error','1775557OnJbuu','@config/logger'];const a248_0x46b7=function(_0xccbe3f,_0x28a383){_0xccbe3f=_0xccbe3f-0x1b1;let _0x3b8012=a248_0x3b80[_0xccbe3f];return _0x3b8012;};const a248_0x159172=a248_0x46b7;(function(_0x21ba25,_0x15ae44){const _0x5a2c2a=a248_0x46b7;while(!![]){try{const _0x347667=-parseInt(_0x5a2c2a(0x1c1))+parseInt(_0x5a2c2a(0x1b7))+parseInt(_0x5a2c2a(0x1c3))+-parseInt(_0x5a2c2a(0x1b3))+parseInt(_0x5a2c2a(0x1cb))+-parseInt(_0x5a2c2a(0x1bf))*-parseInt(_0x5a2c2a(0x1be))+parseInt(_0x5a2c2a(0x1c6))*-parseInt(_0x5a2c2a(0x1b9));if(_0x347667===_0x15ae44)break;else _0x21ba25['push'](_0x21ba25['shift']());}catch(_0x3fa01b){_0x21ba25['push'](_0x21ba25['shift']());}}}(a248_0x3b80,0x8931e));const db=require('@mysqldb')['db'],logger=require(a248_0x159172(0x1c7))('rpc'),{getSocket}=require(a248_0x159172(0x1bd)),socket=getSocket();require('./faxMessage.socket')['register'](socket),exports[a248_0x159172(0x1b5)]=function(_0x455cea){const _0x24eff1=this;return new Promise(function(_0x28401d,_0xd85ce3){const _0x56af73=a248_0x46b7;return db[_0x56af73(0x1b1)]['create'](_0x455cea[_0x56af73(0x1ba)],{'raw':_0x455cea['options']?_0x455cea[_0x56af73(0x1bb)][_0x56af73(0x1c0)]===undefined?!![]:![]:!![]})['then'](function(_0x3f29e0){const _0x2c0db1=_0x56af73;logger[_0x2c0db1(0x1b6)](_0x2c0db1(0x1b5),_0x455cea),logger[_0x2c0db1(0x1c8)]('CreateFaxMessage',_0x455cea,JSON[_0x2c0db1(0x1b8)](_0x3f29e0)),_0x28401d(_0x3f29e0);})['catch'](function(_0x1469df){const _0xf899b=_0x56af73;logger[_0xf899b(0x1c5)](_0xf899b(0x1b5),_0x1469df['message'],_0x455cea),_0xd85ce3(_0x24eff1[_0xf899b(0x1c5)](0x1f4,_0x1469df[_0xf899b(0x1c4)]));});});},exports[a248_0x159172(0x1bc)]=function(_0x220c4a){const _0x3d2887=this;return new Promise(function(_0x32cc4d,_0x4c1eba){const _0x2c4150=a248_0x46b7;return db[_0x2c4150(0x1b1)][_0x2c4150(0x1b2)](_0x220c4a[_0x2c4150(0x1ba)],{'raw':_0x220c4a[_0x2c4150(0x1bb)]?_0x220c4a[_0x2c4150(0x1bb)][_0x2c4150(0x1c0)]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x220c4a[_0x2c4150(0x1bb)]?_0x220c4a[_0x2c4150(0x1bb)][_0x2c4150(0x1c9)]||null:null,'attributes':_0x220c4a[_0x2c4150(0x1bb)]?_0x220c4a[_0x2c4150(0x1bb)]['attributes']||null:null,'limit':_0x220c4a['options']?_0x220c4a[_0x2c4150(0x1bb)][_0x2c4150(0x1ca)]||null:null})[_0x2c4150(0x1c2)](function(_0x5a1389){const _0x1034bf=_0x2c4150;logger[_0x1034bf(0x1b6)](_0x1034bf(0x1bc),_0x220c4a),logger['debug'](_0x1034bf(0x1bc),_0x220c4a,JSON['stringify'](_0x5a1389)),_0x32cc4d(_0x5a1389);})[_0x2c4150(0x1b4)](function(_0x1d281e){const _0x81b867=_0x2c4150;logger[_0x81b867(0x1c5)](_0x81b867(0x1bc),_0x1d281e[_0x81b867(0x1c4)],_0x220c4a),_0x4c1eba(_0x3d2887[_0x81b867(0x1c5)](0x1f4,_0x1d281e['message']));});});};