Built motion from commit (unavailable).|2.5.13
[motion2.git] / server / api / voiceMusicOnHold / voiceMusicOnHold.rpc.js
index b8b81ab..4ca2d24 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x95aa=['../../mysqldb','../../config/utils','rpc','jayson/promise','client','http','request','then','info','VoiceMusicOnHold,\x20%s,\x20%s','debug','VoiceMusicOnHold,\x20%s,\x20%s,\x20%s','request\x20sent','stringify','error','code','message','result','lodash','util','bluebird','ioredis'];(function(_0x12eb7e,_0x58f9dc){var _0x52e3a4=function(_0xd6584){while(--_0xd6584){_0x12eb7e['push'](_0x12eb7e['shift']());}};_0x52e3a4(++_0x58f9dc);}(_0x95aa,0x104));var _0xa95a=function(_0x58eec7,_0x2353db){_0x58eec7=_0x58eec7-0x0;var _0x25c5d3=_0x95aa[_0x58eec7];return _0x25c5d3;};'use strict';var _=require(_0xa95a('0x0'));var util=require(_0xa95a('0x1'));var moment=require('moment');var BPromise=require(_0xa95a('0x2'));var rs=require('randomstring');var fs=require('fs');var Redis=require(_0xa95a('0x3'));var db=require(_0xa95a('0x4'))['db'];var utils=require(_0xa95a('0x5'));var logger=require('../../config/logger')(_0xa95a('0x6'));var config=require('../../config/environment');var jayson=require(_0xa95a('0x7'));var client=jayson[_0xa95a('0x8')][_0xa95a('0x9')]({'port':0x232a});function respondWithRpcPromise(_0x1a1d9d,_0x2b8d50,_0x3ce37f){return new BPromise(function(_0x4bdc3b,_0x44f468){return client[_0xa95a('0xa')](_0x1a1d9d,_0x3ce37f)[_0xa95a('0xb')](function(_0xa42187){logger[_0xa95a('0xc')](_0xa95a('0xd'),_0x2b8d50,'request\x20sent');logger[_0xa95a('0xe')](_0xa95a('0xf'),_0x2b8d50,_0xa95a('0x10'),JSON[_0xa95a('0x11')](_0xa42187));if(_0xa42187[_0xa95a('0x12')]){if(_0xa42187[_0xa95a('0x12')][_0xa95a('0x13')]===0x1f4){logger[_0xa95a('0x12')]('VoiceMusicOnHold,\x20%s,\x20%s',_0x2b8d50,_0xa42187[_0xa95a('0x12')][_0xa95a('0x14')]);return _0x44f468(_0xa42187[_0xa95a('0x12')][_0xa95a('0x14')]);}logger['error'](_0xa95a('0xd'),_0x2b8d50,_0xa42187['error'][_0xa95a('0x14')]);return _0x4bdc3b(_0xa42187[_0xa95a('0x12')][_0xa95a('0x14')]);}else{logger[_0xa95a('0xc')](_0xa95a('0xd'),_0x2b8d50,_0xa95a('0x10'));_0x4bdc3b(_0xa42187[_0xa95a('0x15')][_0xa95a('0x14')]);}})['catch'](function(_0x113738){logger[_0xa95a('0x12')](_0xa95a('0xd'),_0x2b8d50,_0x113738);_0x44f468(_0x113738);});});}
\ No newline at end of file
+var _0x16a1=['message','result','util','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','../../config/environment','jayson/promise','client','request','info','VoiceMusicOnHold,\x20%s,\x20%s','request\x20sent','debug','VoiceMusicOnHold,\x20%s,\x20%s,\x20%s','stringify','error','code'];(function(_0x4cf224,_0x30f810){var _0x3ce77c=function(_0x5484b3){while(--_0x5484b3){_0x4cf224['push'](_0x4cf224['shift']());}};_0x3ce77c(++_0x30f810);}(_0x16a1,0x152));var _0x116a=function(_0x6131cd,_0x4c26a1){_0x6131cd=_0x6131cd-0x0;var _0x47e916=_0x16a1[_0x6131cd];return _0x47e916;};'use strict';var _=require('lodash');var util=require(_0x116a('0x0'));var moment=require('moment');var BPromise=require(_0x116a('0x1'));var rs=require(_0x116a('0x2'));var fs=require('fs');var Redis=require(_0x116a('0x3'));var db=require(_0x116a('0x4'))['db'];var utils=require(_0x116a('0x5'));var logger=require(_0x116a('0x6'))('rpc');var config=require(_0x116a('0x7'));var jayson=require(_0x116a('0x8'));var client=jayson[_0x116a('0x9')]['http']({'port':0x232a});function respondWithRpcPromise(_0xdbe3b5,_0x24610e,_0x388ed9){return new BPromise(function(_0x2809ef,_0x1a7a2d){return client[_0x116a('0xa')](_0xdbe3b5,_0x388ed9)['then'](function(_0x1cdade){logger[_0x116a('0xb')](_0x116a('0xc'),_0x24610e,_0x116a('0xd'));logger[_0x116a('0xe')](_0x116a('0xf'),_0x24610e,_0x116a('0xd'),JSON[_0x116a('0x10')](_0x1cdade));if(_0x1cdade[_0x116a('0x11')]){if(_0x1cdade[_0x116a('0x11')][_0x116a('0x12')]===0x1f4){logger[_0x116a('0x11')](_0x116a('0xc'),_0x24610e,_0x1cdade[_0x116a('0x11')][_0x116a('0x13')]);return _0x1a7a2d(_0x1cdade['error']['message']);}logger['error']('VoiceMusicOnHold,\x20%s,\x20%s',_0x24610e,_0x1cdade['error'][_0x116a('0x13')]);return _0x2809ef(_0x1cdade[_0x116a('0x11')]['message']);}else{logger[_0x116a('0xb')](_0x116a('0xc'),_0x24610e,_0x116a('0xd'));_0x2809ef(_0x1cdade[_0x116a('0x14')][_0x116a('0x13')]);}})['catch'](function(_0x477d4a){logger[_0x116a('0x11')](_0x116a('0xc'),_0x24610e,_0x477d4a);_0x1a7a2d(_0x477d4a);});});}
\ No newline at end of file