Built motion from commit (unavailable).|2.5.26
[motion2.git] / server / api / userFaxQueue / userFaxQueue.rpc.js
index e7e6d21..321bec2 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xfd53=['bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','http','then','info','UserFaxQueue,\x20%s,\x20%s','request\x20sent','debug','UserFaxQueue,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result','lodash','util','moment'];(function(_0x874c50,_0x48e037){var _0x720fdc=function(_0x2693b8){while(--_0x2693b8){_0x874c50['push'](_0x874c50['shift']());}};_0x720fdc(++_0x48e037);}(_0xfd53,0x93));var _0x3fd5=function(_0x166d93,_0x301f09){_0x166d93=_0x166d93-0x0;var _0xba708=_0xfd53[_0x166d93];return _0xba708;};'use strict';var _=require(_0x3fd5('0x0'));var util=require(_0x3fd5('0x1'));var moment=require(_0x3fd5('0x2'));var BPromise=require(_0x3fd5('0x3'));var rs=require(_0x3fd5('0x4'));var fs=require('fs');var Redis=require(_0x3fd5('0x5'));var db=require(_0x3fd5('0x6'))['db'];var utils=require(_0x3fd5('0x7'));var logger=require(_0x3fd5('0x8'))(_0x3fd5('0x9'));var config=require(_0x3fd5('0xa'));var jayson=require(_0x3fd5('0xb'));var client=jayson[_0x3fd5('0xc')][_0x3fd5('0xd')]({'port':0x232a});function respondWithRpcPromise(_0x3de320,_0x37d4f6,_0x2085ca){return new BPromise(function(_0x28a73c,_0x3939f7){return client['request'](_0x3de320,_0x2085ca)[_0x3fd5('0xe')](function(_0x5cf893){logger[_0x3fd5('0xf')](_0x3fd5('0x10'),_0x37d4f6,_0x3fd5('0x11'));logger[_0x3fd5('0x12')](_0x3fd5('0x13'),_0x37d4f6,_0x3fd5('0x11'),JSON[_0x3fd5('0x14')](_0x5cf893));if(_0x5cf893[_0x3fd5('0x15')]){if(_0x5cf893[_0x3fd5('0x15')][_0x3fd5('0x16')]===0x1f4){logger[_0x3fd5('0x15')](_0x3fd5('0x10'),_0x37d4f6,_0x5cf893[_0x3fd5('0x15')][_0x3fd5('0x17')]);return _0x3939f7(_0x5cf893['error'][_0x3fd5('0x17')]);}logger[_0x3fd5('0x15')](_0x3fd5('0x10'),_0x37d4f6,_0x5cf893[_0x3fd5('0x15')]['message']);return _0x28a73c(_0x5cf893[_0x3fd5('0x15')][_0x3fd5('0x17')]);}else{logger[_0x3fd5('0xf')]('UserFaxQueue,\x20%s,\x20%s',_0x37d4f6,'request\x20sent');_0x28a73c(_0x5cf893[_0x3fd5('0x18')][_0x3fd5('0x17')]);}})['catch'](function(_0x42d954){logger[_0x3fd5('0x15')](_0x3fd5('0x10'),_0x37d4f6,_0x42d954);_0x3939f7(_0x42d954);});});}
\ No newline at end of file
+var _0x6e73=['../../config/environment','jayson/promise','request','info','UserFaxQueue,\x20%s,\x20%s','request\x20sent','stringify','error','message','result','catch','lodash','util','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger'];(function(_0x21a9d9,_0x4d5ac8){var _0x46adce=function(_0xfdd336){while(--_0xfdd336){_0x21a9d9['push'](_0x21a9d9['shift']());}};_0x46adce(++_0x4d5ac8);}(_0x6e73,0x13b));var _0x36e7=function(_0xde0d24,_0x53da82){_0xde0d24=_0xde0d24-0x0;var _0x38b551=_0x6e73[_0xde0d24];return _0x38b551;};'use strict';var _=require(_0x36e7('0x0'));var util=require(_0x36e7('0x1'));var moment=require('moment');var BPromise=require(_0x36e7('0x2'));var rs=require(_0x36e7('0x3'));var fs=require('fs');var Redis=require(_0x36e7('0x4'));var db=require(_0x36e7('0x5'))['db'];var utils=require(_0x36e7('0x6'));var logger=require(_0x36e7('0x7'))('rpc');var config=require(_0x36e7('0x8'));var jayson=require(_0x36e7('0x9'));var client=jayson['client']['http']({'port':0x232a});function respondWithRpcPromise(_0x401c8d,_0x1d2fac,_0x552219){return new BPromise(function(_0x3649eb,_0x293206){return client[_0x36e7('0xa')](_0x401c8d,_0x552219)['then'](function(_0x33cdd8){logger[_0x36e7('0xb')](_0x36e7('0xc'),_0x1d2fac,_0x36e7('0xd'));logger['debug']('UserFaxQueue,\x20%s,\x20%s,\x20%s',_0x1d2fac,_0x36e7('0xd'),JSON[_0x36e7('0xe')](_0x33cdd8));if(_0x33cdd8['error']){if(_0x33cdd8[_0x36e7('0xf')]['code']===0x1f4){logger[_0x36e7('0xf')](_0x36e7('0xc'),_0x1d2fac,_0x33cdd8['error']['message']);return _0x293206(_0x33cdd8[_0x36e7('0xf')][_0x36e7('0x10')]);}logger['error']('UserFaxQueue,\x20%s,\x20%s',_0x1d2fac,_0x33cdd8['error'][_0x36e7('0x10')]);return _0x3649eb(_0x33cdd8[_0x36e7('0xf')][_0x36e7('0x10')]);}else{logger['info'](_0x36e7('0xc'),_0x1d2fac,_0x36e7('0xd'));_0x3649eb(_0x33cdd8[_0x36e7('0x11')][_0x36e7('0x10')]);}})[_0x36e7('0x12')](function(_0x40c161){logger['error'](_0x36e7('0xc'),_0x1d2fac,_0x40c161);_0x293206(_0x40c161);});});}
\ No newline at end of file