Built motion from commit 3c2ce842.|2.6.31
[motion2.git] / server / api / voiceMailMessage / voiceMailMessage.rpc.js
index 2c00f85..a6fb3d7 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x93f2=['client','http','request','then','info','VoiceMailMessage,\x20%s,\x20%s','request\x20sent','debug','stringify','error','message','catch','lodash','util','bluebird','randomstring','ioredis','../../mysqldb','../../config/logger','rpc','../../config/environment','jayson/promise'];(function(_0x4d79bc,_0x32c905){var _0x4b4760=function(_0x212302){while(--_0x212302){_0x4d79bc['push'](_0x4d79bc['shift']());}};_0x4b4760(++_0x32c905);}(_0x93f2,0x182));var _0x293f=function(_0x122ef9,_0x451d2a){_0x122ef9=_0x122ef9-0x0;var _0x42fba0=_0x93f2[_0x122ef9];return _0x42fba0;};'use strict';var _=require(_0x293f('0x0'));var util=require(_0x293f('0x1'));var moment=require('moment');var BPromise=require(_0x293f('0x2'));var rs=require(_0x293f('0x3'));var fs=require('fs');var Redis=require(_0x293f('0x4'));var db=require(_0x293f('0x5'))['db'];var utils=require('../../config/utils');var logger=require(_0x293f('0x6'))(_0x293f('0x7'));var config=require(_0x293f('0x8'));var jayson=require(_0x293f('0x9'));var client=jayson[_0x293f('0xa')][_0x293f('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x34e831,_0x529b9f,_0x4f8f42){return new BPromise(function(_0x24d7e7,_0x11f281){return client[_0x293f('0xc')](_0x34e831,_0x4f8f42)[_0x293f('0xd')](function(_0xdf92c0){logger[_0x293f('0xe')](_0x293f('0xf'),_0x529b9f,_0x293f('0x10'));logger[_0x293f('0x11')]('VoiceMailMessage,\x20%s,\x20%s,\x20%s',_0x529b9f,_0x293f('0x10'),JSON[_0x293f('0x12')](_0xdf92c0));if(_0xdf92c0[_0x293f('0x13')]){if(_0xdf92c0[_0x293f('0x13')]['code']===0x1f4){logger[_0x293f('0x13')]('VoiceMailMessage,\x20%s,\x20%s',_0x529b9f,_0xdf92c0[_0x293f('0x13')][_0x293f('0x14')]);return _0x11f281(_0xdf92c0['error'][_0x293f('0x14')]);}logger[_0x293f('0x13')](_0x293f('0xf'),_0x529b9f,_0xdf92c0[_0x293f('0x13')]['message']);return _0x24d7e7(_0xdf92c0[_0x293f('0x13')][_0x293f('0x14')]);}else{logger[_0x293f('0xe')]('VoiceMailMessage,\x20%s,\x20%s',_0x529b9f,_0x293f('0x10'));_0x24d7e7(_0xdf92c0['result'][_0x293f('0x14')]);}})[_0x293f('0x15')](function(_0x3f5c31){logger[_0x293f('0x13')]('VoiceMailMessage,\x20%s,\x20%s',_0x529b9f,_0x3f5c31);_0x11f281(_0x3f5c31);});});}
\ 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