Built motion from commit (unavailable).|2.5.24
[motion2.git] / server / api / userFaxQueue / userFaxQueue.rpc.js
index 555968e..978b318 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x68d7=['../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','http','request','then','UserFaxQueue,\x20%s,\x20%s','request\x20sent','debug','UserFaxQueue,\x20%s,\x20%s,\x20%s','stringify','error','message','info','result','catch','lodash','util','bluebird','randomstring','ioredis','../../mysqldb'];(function(_0x31cc0e,_0x24ba4c){var _0x144862=function(_0x4d236e){while(--_0x4d236e){_0x31cc0e['push'](_0x31cc0e['shift']());}};_0x144862(++_0x24ba4c);}(_0x68d7,0xf4));var _0x768d=function(_0x6731e1,_0x589c3e){_0x6731e1=_0x6731e1-0x0;var _0x50a15d=_0x68d7[_0x6731e1];return _0x50a15d;};'use strict';var _=require(_0x768d('0x0'));var util=require(_0x768d('0x1'));var moment=require('moment');var BPromise=require(_0x768d('0x2'));var rs=require(_0x768d('0x3'));var fs=require('fs');var Redis=require(_0x768d('0x4'));var db=require(_0x768d('0x5'))['db'];var utils=require(_0x768d('0x6'));var logger=require(_0x768d('0x7'))(_0x768d('0x8'));var config=require(_0x768d('0x9'));var jayson=require(_0x768d('0xa'));var client=jayson[_0x768d('0xb')][_0x768d('0xc')]({'port':0x232a});function respondWithRpcPromise(_0x65861,_0x2bb8f5,_0x5cba7f){return new BPromise(function(_0x33cb24,_0x4aef37){return client[_0x768d('0xd')](_0x65861,_0x5cba7f)[_0x768d('0xe')](function(_0x125d4a){logger['info'](_0x768d('0xf'),_0x2bb8f5,_0x768d('0x10'));logger[_0x768d('0x11')](_0x768d('0x12'),_0x2bb8f5,_0x768d('0x10'),JSON[_0x768d('0x13')](_0x125d4a));if(_0x125d4a[_0x768d('0x14')]){if(_0x125d4a[_0x768d('0x14')]['code']===0x1f4){logger[_0x768d('0x14')]('UserFaxQueue,\x20%s,\x20%s',_0x2bb8f5,_0x125d4a[_0x768d('0x14')][_0x768d('0x15')]);return _0x4aef37(_0x125d4a[_0x768d('0x14')][_0x768d('0x15')]);}logger[_0x768d('0x14')](_0x768d('0xf'),_0x2bb8f5,_0x125d4a[_0x768d('0x14')]['message']);return _0x33cb24(_0x125d4a[_0x768d('0x14')][_0x768d('0x15')]);}else{logger[_0x768d('0x16')](_0x768d('0xf'),_0x2bb8f5,_0x768d('0x10'));_0x33cb24(_0x125d4a[_0x768d('0x17')][_0x768d('0x15')]);}})[_0x768d('0x18')](function(_0x50981f){logger['error']('UserFaxQueue,\x20%s,\x20%s',_0x2bb8f5,_0x50981f);_0x4aef37(_0x50981f);});});}
\ 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