Built motion from commit (unavailable).|2.5.0
[motion2.git] / server / api / voiceMusicOnHold / voiceMusicOnHold.rpc.js
index bd53a7f..48233f9 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xe3d2=['result','lodash','moment','bluebird','randomstring','ioredis','../../config/logger','rpc','../../config/environment','jayson/promise','client','http','request','then','info','VoiceMusicOnHold,\x20%s,\x20%s','request\x20sent','debug','stringify','error','code','message'];(function(_0x156d39,_0x127e0f){var _0x1f8911=function(_0xc264d7){while(--_0xc264d7){_0x156d39['push'](_0x156d39['shift']());}};_0x1f8911(++_0x127e0f);}(_0xe3d2,0x85));var _0x2e3d=function(_0x1ea1be,_0x3a97b8){_0x1ea1be=_0x1ea1be-0x0;var _0x84f949=_0xe3d2[_0x1ea1be];return _0x84f949;};'use strict';var _=require(_0x2e3d('0x0'));var util=require('util');var moment=require(_0x2e3d('0x1'));var BPromise=require(_0x2e3d('0x2'));var rs=require(_0x2e3d('0x3'));var fs=require('fs');var Redis=require(_0x2e3d('0x4'));var db=require('../../mysqldb')['db'];var utils=require('../../config/utils');var logger=require(_0x2e3d('0x5'))(_0x2e3d('0x6'));var config=require(_0x2e3d('0x7'));var jayson=require(_0x2e3d('0x8'));var client=jayson[_0x2e3d('0x9')][_0x2e3d('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x345994,_0x29882e,_0x10f83a){return new BPromise(function(_0x3452a6,_0x553c45){return client[_0x2e3d('0xb')](_0x345994,_0x10f83a)[_0x2e3d('0xc')](function(_0x16757f){logger[_0x2e3d('0xd')](_0x2e3d('0xe'),_0x29882e,_0x2e3d('0xf'));logger[_0x2e3d('0x10')]('VoiceMusicOnHold,\x20%s,\x20%s,\x20%s',_0x29882e,'request\x20sent',JSON[_0x2e3d('0x11')](_0x16757f));if(_0x16757f[_0x2e3d('0x12')]){if(_0x16757f[_0x2e3d('0x12')][_0x2e3d('0x13')]===0x1f4){logger[_0x2e3d('0x12')](_0x2e3d('0xe'),_0x29882e,_0x16757f[_0x2e3d('0x12')][_0x2e3d('0x14')]);return _0x553c45(_0x16757f['error'][_0x2e3d('0x14')]);}logger[_0x2e3d('0x12')]('VoiceMusicOnHold,\x20%s,\x20%s',_0x29882e,_0x16757f[_0x2e3d('0x12')]['message']);return _0x3452a6(_0x16757f[_0x2e3d('0x12')][_0x2e3d('0x14')]);}else{logger['info'](_0x2e3d('0xe'),_0x29882e,_0x2e3d('0xf'));_0x3452a6(_0x16757f[_0x2e3d('0x15')][_0x2e3d('0x14')]);}})['catch'](function(_0x4a64b5){logger[_0x2e3d('0x12')]('VoiceMusicOnHold,\x20%s,\x20%s',_0x29882e,_0x4a64b5);_0x553c45(_0x4a64b5);});});}
\ No newline at end of file
+var _0xfc2c=['message','result','bluebird','ioredis','../../config/utils','../../config/logger','../../config/environment','jayson/promise','http','request','then','info','VoiceMusicOnHold,\x20%s,\x20%s','request\x20sent','debug','VoiceMusicOnHold,\x20%s,\x20%s,\x20%s','stringify','error','code'];(function(_0x3d8679,_0x2af567){var _0x50870f=function(_0x34fee1){while(--_0x34fee1){_0x3d8679['push'](_0x3d8679['shift']());}};_0x50870f(++_0x2af567);}(_0xfc2c,0x11f));var _0xcfc2=function(_0x3db291,_0x279603){_0x3db291=_0x3db291-0x0;var _0x40ef9c=_0xfc2c[_0x3db291];return _0x40ef9c;};'use strict';var _=require('lodash');var util=require('util');var moment=require('moment');var BPromise=require(_0xcfc2('0x0'));var rs=require('randomstring');var fs=require('fs');var Redis=require(_0xcfc2('0x1'));var db=require('../../mysqldb')['db'];var utils=require(_0xcfc2('0x2'));var logger=require(_0xcfc2('0x3'))('rpc');var config=require(_0xcfc2('0x4'));var jayson=require(_0xcfc2('0x5'));var client=jayson['client'][_0xcfc2('0x6')]({'port':0x232a});function respondWithRpcPromise(_0x12194d,_0x2628a2,_0x444dd4){return new BPromise(function(_0x25465b,_0x27cdbc){return client[_0xcfc2('0x7')](_0x12194d,_0x444dd4)[_0xcfc2('0x8')](function(_0x1f765d){logger[_0xcfc2('0x9')](_0xcfc2('0xa'),_0x2628a2,_0xcfc2('0xb'));logger[_0xcfc2('0xc')](_0xcfc2('0xd'),_0x2628a2,'request\x20sent',JSON[_0xcfc2('0xe')](_0x1f765d));if(_0x1f765d[_0xcfc2('0xf')]){if(_0x1f765d[_0xcfc2('0xf')][_0xcfc2('0x10')]===0x1f4){logger[_0xcfc2('0xf')](_0xcfc2('0xa'),_0x2628a2,_0x1f765d[_0xcfc2('0xf')][_0xcfc2('0x11')]);return _0x27cdbc(_0x1f765d[_0xcfc2('0xf')]['message']);}logger[_0xcfc2('0xf')]('VoiceMusicOnHold,\x20%s,\x20%s',_0x2628a2,_0x1f765d['error'][_0xcfc2('0x11')]);return _0x25465b(_0x1f765d[_0xcfc2('0xf')][_0xcfc2('0x11')]);}else{logger[_0xcfc2('0x9')]('VoiceMusicOnHold,\x20%s,\x20%s',_0x2628a2,_0xcfc2('0xb'));_0x25465b(_0x1f765d[_0xcfc2('0x12')][_0xcfc2('0x11')]);}})['catch'](function(_0x1c6149){logger[_0xcfc2('0xf')](_0xcfc2('0xa'),_0x2628a2,_0x1c6149);_0x27cdbc(_0x1c6149);});});}
\ No newline at end of file