Built motion from commit da617fac.|2.6.6
[motion2.git] / server / api / voiceMailMessage / voiceMailMessage.rpc.js
index 77bcf77..2b59c58 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x5f66=['../../mysqldb','../../config/utils','rpc','jayson/promise','client','request','then','VoiceMailMessage,\x20%s,\x20%s','request\x20sent','debug','VoiceMailMessage,\x20%s,\x20%s,\x20%s','stringify','code','message','error','info','catch','util','bluebird','randomstring','ioredis'];(function(_0x26e859,_0x506739){var _0x2f2c52=function(_0x1f9987){while(--_0x1f9987){_0x26e859['push'](_0x26e859['shift']());}};_0x2f2c52(++_0x506739);}(_0x5f66,0x1a0));var _0x65f6=function(_0xa464c9,_0x7c86d8){_0xa464c9=_0xa464c9-0x0;var _0x3d73c4=_0x5f66[_0xa464c9];return _0x3d73c4;};'use strict';var _=require('lodash');var util=require(_0x65f6('0x0'));var moment=require('moment');var BPromise=require(_0x65f6('0x1'));var rs=require(_0x65f6('0x2'));var fs=require('fs');var Redis=require(_0x65f6('0x3'));var db=require(_0x65f6('0x4'))['db'];var utils=require(_0x65f6('0x5'));var logger=require('../../config/logger')(_0x65f6('0x6'));var config=require('../../config/environment');var jayson=require(_0x65f6('0x7'));var client=jayson[_0x65f6('0x8')]['http']({'port':0x232a});function respondWithRpcPromise(_0x4ed98f,_0x1c0e12,_0x2c6571){return new BPromise(function(_0x112079,_0x8f6451){return client[_0x65f6('0x9')](_0x4ed98f,_0x2c6571)[_0x65f6('0xa')](function(_0x48d85c){logger['info'](_0x65f6('0xb'),_0x1c0e12,_0x65f6('0xc'));logger[_0x65f6('0xd')](_0x65f6('0xe'),_0x1c0e12,'request\x20sent',JSON[_0x65f6('0xf')](_0x48d85c));if(_0x48d85c['error']){if(_0x48d85c['error'][_0x65f6('0x10')]===0x1f4){logger['error'](_0x65f6('0xb'),_0x1c0e12,_0x48d85c['error'][_0x65f6('0x11')]);return _0x8f6451(_0x48d85c[_0x65f6('0x12')][_0x65f6('0x11')]);}logger[_0x65f6('0x12')](_0x65f6('0xb'),_0x1c0e12,_0x48d85c[_0x65f6('0x12')][_0x65f6('0x11')]);return _0x112079(_0x48d85c[_0x65f6('0x12')][_0x65f6('0x11')]);}else{logger[_0x65f6('0x13')]('VoiceMailMessage,\x20%s,\x20%s',_0x1c0e12,_0x65f6('0xc'));_0x112079(_0x48d85c['result']['message']);}})[_0x65f6('0x14')](function(_0x5c69f8){logger[_0x65f6('0x12')](_0x65f6('0xb'),_0x1c0e12,_0x5c69f8);_0x8f6451(_0x5c69f8);});});}
\ No newline at end of file
+var _0xb908=['VoiceMailMessage,\x20%s,\x20%s','request\x20sent','debug','stringify','error','code','message','result','catch','lodash','moment','bluebird','randomstring','ioredis','../../config/utils','rpc','../../config/environment','client','http','request','then'];(function(_0x4154a6,_0x2c0b8e){var _0x3b2786=function(_0x2f5936){while(--_0x2f5936){_0x4154a6['push'](_0x4154a6['shift']());}};_0x3b2786(++_0x2c0b8e);}(_0xb908,0xb1));var _0x8b90=function(_0x13992d,_0x3029ea){_0x13992d=_0x13992d-0x0;var _0x3d15bf=_0xb908[_0x13992d];return _0x3d15bf;};'use strict';var _=require(_0x8b90('0x0'));var util=require('util');var moment=require(_0x8b90('0x1'));var BPromise=require(_0x8b90('0x2'));var rs=require(_0x8b90('0x3'));var fs=require('fs');var Redis=require(_0x8b90('0x4'));var db=require('../../mysqldb')['db'];var utils=require(_0x8b90('0x5'));var logger=require('../../config/logger')(_0x8b90('0x6'));var config=require(_0x8b90('0x7'));var jayson=require('jayson/promise');var client=jayson[_0x8b90('0x8')][_0x8b90('0x9')]({'port':0x232a});function respondWithRpcPromise(_0x54bcda,_0x35ed0c,_0x555f61){return new BPromise(function(_0x5e40ab,_0x23da2a){return client[_0x8b90('0xa')](_0x54bcda,_0x555f61)[_0x8b90('0xb')](function(_0x329ff1){logger['info'](_0x8b90('0xc'),_0x35ed0c,_0x8b90('0xd'));logger[_0x8b90('0xe')]('VoiceMailMessage,\x20%s,\x20%s,\x20%s',_0x35ed0c,_0x8b90('0xd'),JSON[_0x8b90('0xf')](_0x329ff1));if(_0x329ff1[_0x8b90('0x10')]){if(_0x329ff1[_0x8b90('0x10')][_0x8b90('0x11')]===0x1f4){logger[_0x8b90('0x10')]('VoiceMailMessage,\x20%s,\x20%s',_0x35ed0c,_0x329ff1[_0x8b90('0x10')][_0x8b90('0x12')]);return _0x23da2a(_0x329ff1[_0x8b90('0x10')][_0x8b90('0x12')]);}logger[_0x8b90('0x10')](_0x8b90('0xc'),_0x35ed0c,_0x329ff1[_0x8b90('0x10')][_0x8b90('0x12')]);return _0x5e40ab(_0x329ff1[_0x8b90('0x10')][_0x8b90('0x12')]);}else{logger['info']('VoiceMailMessage,\x20%s,\x20%s',_0x35ed0c,'request\x20sent');_0x5e40ab(_0x329ff1[_0x8b90('0x13')][_0x8b90('0x12')]);}})[_0x8b90('0x14')](function(_0x1d2c2c){logger['error']('VoiceMailMessage,\x20%s,\x20%s',_0x35ed0c,_0x1d2c2c);_0x23da2a(_0x1d2c2c);});});}
\ No newline at end of file