Built motion from commit 092f8824.|2.5.49
[motion2.git] / server / api / userFaxQueue / userFaxQueue.rpc.js
index f8768d2..8cfce1e 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xe676=['../../mysqldb','../../config/utils','rpc','../../config/environment','jayson/promise','client','request','then','info','UserFaxQueue,\x20%s,\x20%s','debug','UserFaxQueue,\x20%s,\x20%s,\x20%s','stringify','error','code','message','request\x20sent','result','catch','lodash','util','moment','bluebird','randomstring','ioredis'];(function(_0x1c3480,_0x28983f){var _0x22f8f9=function(_0xbf504c){while(--_0xbf504c){_0x1c3480['push'](_0x1c3480['shift']());}};_0x22f8f9(++_0x28983f);}(_0xe676,0x1d5));var _0x6e67=function(_0x9c2427,_0x17c865){_0x9c2427=_0x9c2427-0x0;var _0x51984f=_0xe676[_0x9c2427];return _0x51984f;};'use strict';var _=require(_0x6e67('0x0'));var util=require(_0x6e67('0x1'));var moment=require(_0x6e67('0x2'));var BPromise=require(_0x6e67('0x3'));var rs=require(_0x6e67('0x4'));var fs=require('fs');var Redis=require(_0x6e67('0x5'));var db=require(_0x6e67('0x6'))['db'];var utils=require(_0x6e67('0x7'));var logger=require('../../config/logger')(_0x6e67('0x8'));var config=require(_0x6e67('0x9'));var jayson=require(_0x6e67('0xa'));var client=jayson[_0x6e67('0xb')]['http']({'port':0x232a});function respondWithRpcPromise(_0xb2524c,_0x57da2c,_0x4d0e9a){return new BPromise(function(_0x386f3c,_0x41f0c9){return client[_0x6e67('0xc')](_0xb2524c,_0x4d0e9a)[_0x6e67('0xd')](function(_0x3aae5c){logger[_0x6e67('0xe')](_0x6e67('0xf'),_0x57da2c,'request\x20sent');logger[_0x6e67('0x10')](_0x6e67('0x11'),_0x57da2c,'request\x20sent',JSON[_0x6e67('0x12')](_0x3aae5c));if(_0x3aae5c[_0x6e67('0x13')]){if(_0x3aae5c[_0x6e67('0x13')][_0x6e67('0x14')]===0x1f4){logger[_0x6e67('0x13')](_0x6e67('0xf'),_0x57da2c,_0x3aae5c[_0x6e67('0x13')]['message']);return _0x41f0c9(_0x3aae5c[_0x6e67('0x13')]['message']);}logger[_0x6e67('0x13')](_0x6e67('0xf'),_0x57da2c,_0x3aae5c[_0x6e67('0x13')][_0x6e67('0x15')]);return _0x386f3c(_0x3aae5c['error'][_0x6e67('0x15')]);}else{logger['info'](_0x6e67('0xf'),_0x57da2c,_0x6e67('0x16'));_0x386f3c(_0x3aae5c[_0x6e67('0x17')]['message']);}})[_0x6e67('0x18')](function(_0x114591){logger[_0x6e67('0x13')](_0x6e67('0xf'),_0x57da2c,_0x114591);_0x41f0c9(_0x114591);});});}
\ No newline at end of file
+var _0x3227=['error','code','message','info','result','catch','lodash','util','moment','bluebird','randomstring','ioredis','../../config/logger','../../config/environment','jayson/promise','then','UserFaxQueue,\x20%s,\x20%s','request\x20sent','debug','UserFaxQueue,\x20%s,\x20%s,\x20%s','stringify'];(function(_0x3f9416,_0x43b66c){var _0x473b1c=function(_0x277f26){while(--_0x277f26){_0x3f9416['push'](_0x3f9416['shift']());}};_0x473b1c(++_0x43b66c);}(_0x3227,0x1bf));var _0x7322=function(_0x49f2a8,_0x475eae){_0x49f2a8=_0x49f2a8-0x0;var _0x4ff055=_0x3227[_0x49f2a8];return _0x4ff055;};'use strict';var _=require(_0x7322('0x0'));var util=require(_0x7322('0x1'));var moment=require(_0x7322('0x2'));var BPromise=require(_0x7322('0x3'));var rs=require(_0x7322('0x4'));var fs=require('fs');var Redis=require(_0x7322('0x5'));var db=require('../../mysqldb')['db'];var utils=require('../../config/utils');var logger=require(_0x7322('0x6'))('rpc');var config=require(_0x7322('0x7'));var jayson=require(_0x7322('0x8'));var client=jayson['client']['http']({'port':0x232a});function respondWithRpcPromise(_0x159891,_0x8c0ba4,_0x29bf87){return new BPromise(function(_0x231f7f,_0x1c0d2d){return client['request'](_0x159891,_0x29bf87)[_0x7322('0x9')](function(_0x4179af){logger['info'](_0x7322('0xa'),_0x8c0ba4,_0x7322('0xb'));logger[_0x7322('0xc')](_0x7322('0xd'),_0x8c0ba4,_0x7322('0xb'),JSON[_0x7322('0xe')](_0x4179af));if(_0x4179af['error']){if(_0x4179af[_0x7322('0xf')][_0x7322('0x10')]===0x1f4){logger[_0x7322('0xf')](_0x7322('0xa'),_0x8c0ba4,_0x4179af['error'][_0x7322('0x11')]);return _0x1c0d2d(_0x4179af[_0x7322('0xf')][_0x7322('0x11')]);}logger['error']('UserFaxQueue,\x20%s,\x20%s',_0x8c0ba4,_0x4179af['error']['message']);return _0x231f7f(_0x4179af['error'][_0x7322('0x11')]);}else{logger[_0x7322('0x12')](_0x7322('0xa'),_0x8c0ba4,_0x7322('0xb'));_0x231f7f(_0x4179af[_0x7322('0x13')][_0x7322('0x11')]);}})[_0x7322('0x14')](function(_0x55c542){logger['error'](_0x7322('0xa'),_0x8c0ba4,_0x55c542);_0x1c0d2d(_0x55c542);});});}
\ No newline at end of file