Built motion from commit (unavailable).|2.5.6
[motion2.git] / server / api / voiceTransferReport / voiceTransferReport.rpc.js
index 725c5ca..25fc319 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x466f=['CreateVoiceTransferReport','VoiceTransferReport','create','body','options','raw','lodash','moment','bluebird','randomstring','../../mysqldb','../../config/logger','../../config/environment','jayson/promise','client','request','then','info','VoiceTransferReport,\x20%s,\x20%s','debug','VoiceTransferReport,\x20%s,\x20%s,\x20%s','request\x20sent','stringify','error','code','message','result','catch'];(function(_0x3726fc,_0x541e17){var _0x21b4d0=function(_0x10745a){while(--_0x10745a){_0x3726fc['push'](_0x3726fc['shift']());}};_0x21b4d0(++_0x541e17);}(_0x466f,0x76));var _0xf466=function(_0x5963a1,_0x5cad23){_0x5963a1=_0x5963a1-0x0;var _0x3832ef=_0x466f[_0x5963a1];return _0x3832ef;};'use strict';var _=require(_0xf466('0x0'));var util=require('util');var moment=require(_0xf466('0x1'));var BPromise=require(_0xf466('0x2'));var rs=require(_0xf466('0x3'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0xf466('0x4'))['db'];var utils=require('../../config/utils');var logger=require(_0xf466('0x5'))('rpc');var config=require(_0xf466('0x6'));var jayson=require(_0xf466('0x7'));var client=jayson[_0xf466('0x8')]['http']({'port':0x232a});function respondWithRpcPromise(_0x374f9c,_0x4b7ae1,_0x3b6ea6){return new BPromise(function(_0x93baf8,_0x19a387){return client[_0xf466('0x9')](_0x374f9c,_0x3b6ea6)[_0xf466('0xa')](function(_0x10d47c){logger[_0xf466('0xb')](_0xf466('0xc'),_0x4b7ae1,'request\x20sent');logger[_0xf466('0xd')](_0xf466('0xe'),_0x4b7ae1,_0xf466('0xf'),JSON[_0xf466('0x10')](_0x10d47c));if(_0x10d47c['error']){if(_0x10d47c[_0xf466('0x11')][_0xf466('0x12')]===0x1f4){logger['error'](_0xf466('0xc'),_0x4b7ae1,_0x10d47c[_0xf466('0x11')][_0xf466('0x13')]);return _0x19a387(_0x10d47c[_0xf466('0x11')][_0xf466('0x13')]);}logger[_0xf466('0x11')](_0xf466('0xc'),_0x4b7ae1,_0x10d47c[_0xf466('0x11')][_0xf466('0x13')]);return _0x93baf8(_0x10d47c[_0xf466('0x11')][_0xf466('0x13')]);}else{logger[_0xf466('0xb')]('VoiceTransferReport,\x20%s,\x20%s',_0x4b7ae1,'request\x20sent');_0x93baf8(_0x10d47c[_0xf466('0x14')][_0xf466('0x13')]);}})[_0xf466('0x15')](function(_0x30a625){logger['error']('VoiceTransferReport,\x20%s,\x20%s',_0x4b7ae1,_0x30a625);_0x19a387(_0x30a625);});});}exports[_0xf466('0x16')]=function(_0xc7fd38){var _0x24c932=this;return new Promise(function(_0x46e1ad,_0x2f6a19){return db[_0xf466('0x17')][_0xf466('0x18')](_0xc7fd38[_0xf466('0x19')],{'raw':_0xc7fd38[_0xf466('0x1a')]?_0xc7fd38[_0xf466('0x1a')][_0xf466('0x1b')]===undefined?!![]:![]:!![]})[_0xf466('0xa')](function(_0x52b6d4){logger['info'](_0xf466('0x16'),_0xc7fd38);logger['debug'](_0xf466('0x16'),_0xc7fd38,JSON[_0xf466('0x10')](_0x52b6d4));_0x46e1ad(_0x52b6d4);})[_0xf466('0x15')](function(_0x414564){logger[_0xf466('0x11')](_0xf466('0x16'),_0x414564[_0xf466('0x13')],_0xc7fd38);_0x2f6a19(_0x24c932[_0xf466('0x11')](0x1f4,_0x414564[_0xf466('0x13')]));});});};
\ No newline at end of file
+var _0x2a41=['CreateVoiceTransferReport','VoiceTransferReport','options','raw','lodash','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','client','http','request','then','info','request\x20sent','debug','VoiceTransferReport,\x20%s,\x20%s,\x20%s','stringify','error','code','VoiceTransferReport,\x20%s,\x20%s','message','result','catch'];(function(_0xbfc001,_0x417027){var _0x5592bc=function(_0x5558e0){while(--_0x5558e0){_0xbfc001['push'](_0xbfc001['shift']());}};_0x5592bc(++_0x417027);}(_0x2a41,0x126));var _0x12a4=function(_0x34df4a,_0x209d10){_0x34df4a=_0x34df4a-0x0;var _0x145c69=_0x2a41[_0x34df4a];return _0x145c69;};'use strict';var _=require(_0x12a4('0x0'));var util=require('util');var moment=require(_0x12a4('0x1'));var BPromise=require(_0x12a4('0x2'));var rs=require(_0x12a4('0x3'));var fs=require('fs');var Redis=require(_0x12a4('0x4'));var db=require(_0x12a4('0x5'))['db'];var utils=require(_0x12a4('0x6'));var logger=require(_0x12a4('0x7'))(_0x12a4('0x8'));var config=require(_0x12a4('0x9'));var jayson=require('jayson/promise');var client=jayson[_0x12a4('0xa')][_0x12a4('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x58fffc,_0x5d2353,_0x2042cc){return new BPromise(function(_0x5ae867,_0x23bb59){return client[_0x12a4('0xc')](_0x58fffc,_0x2042cc)[_0x12a4('0xd')](function(_0x38d894){logger[_0x12a4('0xe')]('VoiceTransferReport,\x20%s,\x20%s',_0x5d2353,_0x12a4('0xf'));logger[_0x12a4('0x10')](_0x12a4('0x11'),_0x5d2353,_0x12a4('0xf'),JSON[_0x12a4('0x12')](_0x38d894));if(_0x38d894[_0x12a4('0x13')]){if(_0x38d894[_0x12a4('0x13')][_0x12a4('0x14')]===0x1f4){logger[_0x12a4('0x13')](_0x12a4('0x15'),_0x5d2353,_0x38d894[_0x12a4('0x13')][_0x12a4('0x16')]);return _0x23bb59(_0x38d894['error'][_0x12a4('0x16')]);}logger[_0x12a4('0x13')](_0x12a4('0x15'),_0x5d2353,_0x38d894[_0x12a4('0x13')][_0x12a4('0x16')]);return _0x5ae867(_0x38d894['error']['message']);}else{logger[_0x12a4('0xe')](_0x12a4('0x15'),_0x5d2353,_0x12a4('0xf'));_0x5ae867(_0x38d894[_0x12a4('0x17')]['message']);}})[_0x12a4('0x18')](function(_0x28d311){logger[_0x12a4('0x13')](_0x12a4('0x15'),_0x5d2353,_0x28d311);_0x23bb59(_0x28d311);});});}exports[_0x12a4('0x19')]=function(_0xe274e1){var _0x4d7c49=this;return new Promise(function(_0x1a6bbe,_0x3a783c){return db[_0x12a4('0x1a')]['create'](_0xe274e1['body'],{'raw':_0xe274e1[_0x12a4('0x1b')]?_0xe274e1[_0x12a4('0x1b')][_0x12a4('0x1c')]===undefined?!![]:![]:!![]})[_0x12a4('0xd')](function(_0x1a35d3){logger['info'](_0x12a4('0x19'),_0xe274e1);logger['debug'](_0x12a4('0x19'),_0xe274e1,JSON[_0x12a4('0x12')](_0x1a35d3));_0x1a6bbe(_0x1a35d3);})[_0x12a4('0x18')](function(_0x475939){logger[_0x12a4('0x13')]('CreateVoiceTransferReport',_0x475939[_0x12a4('0x16')],_0xe274e1);_0x3a783c(_0x4d7c49[_0x12a4('0x13')](0x1f4,_0x475939[_0x12a4('0x16')]));});});};
\ No newline at end of file