Built motion from commit 994c64e1.|2.6.1
[motion2.git] / server / api / userFaxQueue / userFaxQueue.rpc.js
index 555968e..96e3800 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 _0x77e2=['ioredis','../../config/logger','../../config/environment','jayson/promise','client','http','request','info','UserFaxQueue,\x20%s,\x20%s','request\x20sent','debug','error','code','message','result','catch','util','bluebird','randomstring'];(function(_0x4c40ef,_0x442a07){var _0x3780c9=function(_0x11bc0e){while(--_0x11bc0e){_0x4c40ef['push'](_0x4c40ef['shift']());}};_0x3780c9(++_0x442a07);}(_0x77e2,0xa8));var _0x277e=function(_0x321bb2,_0x202794){_0x321bb2=_0x321bb2-0x0;var _0x9c12ed=_0x77e2[_0x321bb2];return _0x9c12ed;};'use strict';var _=require('lodash');var util=require(_0x277e('0x0'));var moment=require('moment');var BPromise=require(_0x277e('0x1'));var rs=require(_0x277e('0x2'));var fs=require('fs');var Redis=require(_0x277e('0x3'));var db=require('../../mysqldb')['db'];var utils=require('../../config/utils');var logger=require(_0x277e('0x4'))('rpc');var config=require(_0x277e('0x5'));var jayson=require(_0x277e('0x6'));var client=jayson[_0x277e('0x7')][_0x277e('0x8')]({'port':0x232a});function respondWithRpcPromise(_0x52cb32,_0x2370d1,_0x5d1b40){return new BPromise(function(_0x2ffdb5,_0x49db20){return client[_0x277e('0x9')](_0x52cb32,_0x5d1b40)['then'](function(_0x4b655b){logger[_0x277e('0xa')](_0x277e('0xb'),_0x2370d1,_0x277e('0xc'));logger[_0x277e('0xd')]('UserFaxQueue,\x20%s,\x20%s,\x20%s',_0x2370d1,_0x277e('0xc'),JSON['stringify'](_0x4b655b));if(_0x4b655b[_0x277e('0xe')]){if(_0x4b655b[_0x277e('0xe')][_0x277e('0xf')]===0x1f4){logger[_0x277e('0xe')](_0x277e('0xb'),_0x2370d1,_0x4b655b[_0x277e('0xe')]['message']);return _0x49db20(_0x4b655b['error'][_0x277e('0x10')]);}logger[_0x277e('0xe')]('UserFaxQueue,\x20%s,\x20%s',_0x2370d1,_0x4b655b['error']['message']);return _0x2ffdb5(_0x4b655b['error']['message']);}else{logger['info'](_0x277e('0xb'),_0x2370d1,'request\x20sent');_0x2ffdb5(_0x4b655b[_0x277e('0x11')][_0x277e('0x10')]);}})[_0x277e('0x12')](function(_0x5ca7c7){logger[_0x277e('0xe')](_0x277e('0xb'),_0x2370d1,_0x5ca7c7);_0x49db20(_0x5ca7c7);});});}
\ No newline at end of file