Built motion from commit (unavailable).|2.5.24
[motion2.git] / server / api / userFaxQueue / userFaxQueue.rpc.js
index 182a805..978b318 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xe75e=['request','then','request\x20sent','debug','UserFaxQueue,\x20%s,\x20%s,\x20%s','stringify','error','code','UserFaxQueue,\x20%s,\x20%s','message','catch','lodash','util','moment','bluebird','../../config/utils','../../config/logger','../../config/environment','jayson/promise','client'];(function(_0x4e667e,_0x112720){var _0x454ef3=function(_0x1b22c5){while(--_0x1b22c5){_0x4e667e['push'](_0x4e667e['shift']());}};_0x454ef3(++_0x112720);}(_0xe75e,0x15f));var _0xee75=function(_0x3c487b,_0x44c5e2){_0x3c487b=_0x3c487b-0x0;var _0x1d65f6=_0xe75e[_0x3c487b];return _0x1d65f6;};'use strict';var _=require(_0xee75('0x0'));var util=require(_0xee75('0x1'));var moment=require(_0xee75('0x2'));var BPromise=require(_0xee75('0x3'));var rs=require('randomstring');var fs=require('fs');var Redis=require('ioredis');var db=require('../../mysqldb')['db'];var utils=require(_0xee75('0x4'));var logger=require(_0xee75('0x5'))('rpc');var config=require(_0xee75('0x6'));var jayson=require(_0xee75('0x7'));var client=jayson[_0xee75('0x8')]['http']({'port':0x232a});function respondWithRpcPromise(_0x5a69b8,_0x2bdd6e,_0x13575b){return new BPromise(function(_0x2b0543,_0x3f0351){return client[_0xee75('0x9')](_0x5a69b8,_0x13575b)[_0xee75('0xa')](function(_0x4e5428){logger['info']('UserFaxQueue,\x20%s,\x20%s',_0x2bdd6e,_0xee75('0xb'));logger[_0xee75('0xc')](_0xee75('0xd'),_0x2bdd6e,_0xee75('0xb'),JSON[_0xee75('0xe')](_0x4e5428));if(_0x4e5428[_0xee75('0xf')]){if(_0x4e5428[_0xee75('0xf')][_0xee75('0x10')]===0x1f4){logger[_0xee75('0xf')](_0xee75('0x11'),_0x2bdd6e,_0x4e5428[_0xee75('0xf')][_0xee75('0x12')]);return _0x3f0351(_0x4e5428[_0xee75('0xf')][_0xee75('0x12')]);}logger[_0xee75('0xf')](_0xee75('0x11'),_0x2bdd6e,_0x4e5428['error'][_0xee75('0x12')]);return _0x2b0543(_0x4e5428['error']['message']);}else{logger['info'](_0xee75('0x11'),_0x2bdd6e,'request\x20sent');_0x2b0543(_0x4e5428['result'][_0xee75('0x12')]);}})[_0xee75('0x13')](function(_0x179555){logger['error'](_0xee75('0x11'),_0x2bdd6e,_0x179555);_0x3f0351(_0x179555);});});}
\ No newline at end of file
+var _0x6636=['../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','http','request','then','info','debug','UserFaxQueue,\x20%s,\x20%s,\x20%s','request\x20sent','stringify','error','code','message','UserFaxQueue,\x20%s,\x20%s','result','catch','lodash','util','bluebird','randomstring','ioredis'];(function(_0xf84870,_0x4dc38f){var _0x4541a4=function(_0x3ff5d5){while(--_0x3ff5d5){_0xf84870['push'](_0xf84870['shift']());}};_0x4541a4(++_0x4dc38f);}(_0x6636,0x119));var _0x6663=function(_0xb05bad,_0x3b12d6){_0xb05bad=_0xb05bad-0x0;var _0x38dd51=_0x6636[_0xb05bad];return _0x38dd51;};'use strict';var _=require(_0x6663('0x0'));var util=require(_0x6663('0x1'));var moment=require('moment');var BPromise=require(_0x6663('0x2'));var rs=require(_0x6663('0x3'));var fs=require('fs');var Redis=require(_0x6663('0x4'));var db=require(_0x6663('0x5'))['db'];var utils=require(_0x6663('0x6'));var logger=require(_0x6663('0x7'))(_0x6663('0x8'));var config=require(_0x6663('0x9'));var jayson=require(_0x6663('0xa'));var client=jayson[_0x6663('0xb')][_0x6663('0xc')]({'port':0x232a});function respondWithRpcPromise(_0x2f0dd9,_0x5cc3ee,_0x56d802){return new BPromise(function(_0x30dc40,_0x188316){return client[_0x6663('0xd')](_0x2f0dd9,_0x56d802)[_0x6663('0xe')](function(_0x56ccb5){logger[_0x6663('0xf')]('UserFaxQueue,\x20%s,\x20%s',_0x5cc3ee,'request\x20sent');logger[_0x6663('0x10')](_0x6663('0x11'),_0x5cc3ee,_0x6663('0x12'),JSON[_0x6663('0x13')](_0x56ccb5));if(_0x56ccb5[_0x6663('0x14')]){if(_0x56ccb5['error'][_0x6663('0x15')]===0x1f4){logger['error']('UserFaxQueue,\x20%s,\x20%s',_0x5cc3ee,_0x56ccb5[_0x6663('0x14')][_0x6663('0x16')]);return _0x188316(_0x56ccb5[_0x6663('0x14')][_0x6663('0x16')]);}logger['error']('UserFaxQueue,\x20%s,\x20%s',_0x5cc3ee,_0x56ccb5['error'][_0x6663('0x16')]);return _0x30dc40(_0x56ccb5[_0x6663('0x14')]['message']);}else{logger[_0x6663('0xf')](_0x6663('0x17'),_0x5cc3ee,_0x6663('0x12'));_0x30dc40(_0x56ccb5[_0x6663('0x18')][_0x6663('0x16')]);}})[_0x6663('0x19')](function(_0x201920){logger['error'](_0x6663('0x17'),_0x5cc3ee,_0x201920);_0x188316(_0x201920);});});}
\ No newline at end of file