Built motion from commit 3c2ce842.|2.6.31
[motion2.git] / server / api / voiceMailMessage / voiceMailMessage.rpc.js
index 02ea867..a6fb3d7 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x14a0=['../../mysqldb','../../config/utils','../../config/environment','jayson/promise','client','then','debug','request\x20sent','stringify','error','code','VoiceMailMessage,\x20%s,\x20%s','message','info','result','catch','util','moment','bluebird','randomstring','ioredis'];(function(_0x20006a,_0x30e3a9){var _0x5e26ac=function(_0x16ca0a){while(--_0x16ca0a){_0x20006a['push'](_0x20006a['shift']());}};_0x5e26ac(++_0x30e3a9);}(_0x14a0,0x8e));var _0x014a=function(_0x361258,_0x485a6a){_0x361258=_0x361258-0x0;var _0x1285bb=_0x14a0[_0x361258];return _0x1285bb;};'use strict';var _=require('lodash');var util=require(_0x014a('0x0'));var moment=require(_0x014a('0x1'));var BPromise=require(_0x014a('0x2'));var rs=require(_0x014a('0x3'));var fs=require('fs');var Redis=require(_0x014a('0x4'));var db=require(_0x014a('0x5'))['db'];var utils=require(_0x014a('0x6'));var logger=require('../../config/logger')('rpc');var config=require(_0x014a('0x7'));var jayson=require(_0x014a('0x8'));var client=jayson[_0x014a('0x9')]['http']({'port':0x232a});function respondWithRpcPromise(_0x5a61ac,_0x11b8ce,_0x6d05f2){return new BPromise(function(_0x22f17c,_0x4d943b){return client['request'](_0x5a61ac,_0x6d05f2)[_0x014a('0xa')](function(_0x4f5506){logger['info']('VoiceMailMessage,\x20%s,\x20%s',_0x11b8ce,'request\x20sent');logger[_0x014a('0xb')]('VoiceMailMessage,\x20%s,\x20%s,\x20%s',_0x11b8ce,_0x014a('0xc'),JSON[_0x014a('0xd')](_0x4f5506));if(_0x4f5506['error']){if(_0x4f5506[_0x014a('0xe')][_0x014a('0xf')]===0x1f4){logger[_0x014a('0xe')](_0x014a('0x10'),_0x11b8ce,_0x4f5506[_0x014a('0xe')][_0x014a('0x11')]);return _0x4d943b(_0x4f5506[_0x014a('0xe')][_0x014a('0x11')]);}logger[_0x014a('0xe')](_0x014a('0x10'),_0x11b8ce,_0x4f5506[_0x014a('0xe')][_0x014a('0x11')]);return _0x22f17c(_0x4f5506['error'][_0x014a('0x11')]);}else{logger[_0x014a('0x12')]('VoiceMailMessage,\x20%s,\x20%s',_0x11b8ce,_0x014a('0xc'));_0x22f17c(_0x4f5506[_0x014a('0x13')]['message']);}})[_0x014a('0x14')](function(_0x17e4be){logger[_0x014a('0xe')](_0x014a('0x10'),_0x11b8ce,_0x17e4be);_0x4d943b(_0x17e4be);});});}
\ No newline at end of file
+var _0x1900=['rpc','../../config/environment','client','http','request','then','info','error','code','VoiceMailMessage,\x20%s,\x20%s','message','request\x20sent','catch','util','randomstring','../../config/utils','../../config/logger'];(function(_0x4ba2da,_0x2a4ba1){var _0x19c3da=function(_0x48f968){while(--_0x48f968){_0x4ba2da['push'](_0x4ba2da['shift']());}};_0x19c3da(++_0x2a4ba1);}(_0x1900,0x95));var _0x0190=function(_0x305795,_0x260eb7){_0x305795=_0x305795-0x0;var _0x5ee0b9=_0x1900[_0x305795];return _0x5ee0b9;};'use strict';var _=require('lodash');var util=require(_0x0190('0x0'));var moment=require('moment');var BPromise=require('bluebird');var rs=require(_0x0190('0x1'));var fs=require('fs');var Redis=require('ioredis');var db=require('../../mysqldb')['db'];var utils=require(_0x0190('0x2'));var logger=require(_0x0190('0x3'))(_0x0190('0x4'));var config=require(_0x0190('0x5'));var jayson=require('jayson/promise');var client=jayson[_0x0190('0x6')][_0x0190('0x7')]({'port':0x232a});function respondWithRpcPromise(_0x51d867,_0x6d5905,_0x476bdc){return new BPromise(function(_0x12d4f5,_0x2a129a){return client[_0x0190('0x8')](_0x51d867,_0x476bdc)[_0x0190('0x9')](function(_0x1ce15a){logger[_0x0190('0xa')]('VoiceMailMessage,\x20%s,\x20%s',_0x6d5905,'request\x20sent');logger['debug']('VoiceMailMessage,\x20%s,\x20%s,\x20%s',_0x6d5905,'request\x20sent',JSON['stringify'](_0x1ce15a));if(_0x1ce15a[_0x0190('0xb')]){if(_0x1ce15a['error'][_0x0190('0xc')]===0x1f4){logger[_0x0190('0xb')](_0x0190('0xd'),_0x6d5905,_0x1ce15a['error'][_0x0190('0xe')]);return _0x2a129a(_0x1ce15a[_0x0190('0xb')][_0x0190('0xe')]);}logger[_0x0190('0xb')](_0x0190('0xd'),_0x6d5905,_0x1ce15a[_0x0190('0xb')][_0x0190('0xe')]);return _0x12d4f5(_0x1ce15a[_0x0190('0xb')][_0x0190('0xe')]);}else{logger['info'](_0x0190('0xd'),_0x6d5905,_0x0190('0xf'));_0x12d4f5(_0x1ce15a['result'][_0x0190('0xe')]);}})[_0x0190('0x10')](function(_0x3c4b31){logger['error'](_0x0190('0xd'),_0x6d5905,_0x3c4b31);_0x2a129a(_0x3c4b31);});});}
\ No newline at end of file