Built motion from commit (unavailable).|2.5.21
[motion2.git] / server / api / voiceDialReport / voiceDialReport.rpc.js
index 017b29a..d6a61c7 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x2553=['http','request','then','VoiceDialReport,\x20%s,\x20%s','request\x20sent','debug','VoiceDialReport,\x20%s,\x20%s,\x20%s','stringify','error','code','message','info','result','CreateVoiceDialReport','VoiceDialReport','create','body','options','raw','catch','UpdateVoiceDialReport','update','where','limit','lodash','util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client'];(function(_0x222bd3,_0x4c9a4f){var _0x4bed46=function(_0x4a0261){while(--_0x4a0261){_0x222bd3['push'](_0x222bd3['shift']());}};_0x4bed46(++_0x4c9a4f);}(_0x2553,0xf6));var _0x3255=function(_0x14ec54,_0x2d5098){_0x14ec54=_0x14ec54-0x0;var _0x2f8c0e=_0x2553[_0x14ec54];return _0x2f8c0e;};'use strict';var _=require(_0x3255('0x0'));var util=require(_0x3255('0x1'));var moment=require(_0x3255('0x2'));var BPromise=require(_0x3255('0x3'));var rs=require(_0x3255('0x4'));var fs=require('fs');var Redis=require(_0x3255('0x5'));var db=require(_0x3255('0x6'))['db'];var utils=require(_0x3255('0x7'));var logger=require(_0x3255('0x8'))(_0x3255('0x9'));var config=require(_0x3255('0xa'));var jayson=require(_0x3255('0xb'));var client=jayson[_0x3255('0xc')][_0x3255('0xd')]({'port':0x232a});function respondWithRpcPromise(_0x3e0b7b,_0x2034bc,_0x4e9eaa){return new BPromise(function(_0x1327d6,_0x131c55){return client[_0x3255('0xe')](_0x3e0b7b,_0x4e9eaa)[_0x3255('0xf')](function(_0x26d0a1){logger['info'](_0x3255('0x10'),_0x2034bc,_0x3255('0x11'));logger[_0x3255('0x12')](_0x3255('0x13'),_0x2034bc,_0x3255('0x11'),JSON[_0x3255('0x14')](_0x26d0a1));if(_0x26d0a1[_0x3255('0x15')]){if(_0x26d0a1[_0x3255('0x15')][_0x3255('0x16')]===0x1f4){logger['error'](_0x3255('0x10'),_0x2034bc,_0x26d0a1[_0x3255('0x15')][_0x3255('0x17')]);return _0x131c55(_0x26d0a1[_0x3255('0x15')][_0x3255('0x17')]);}logger[_0x3255('0x15')](_0x3255('0x10'),_0x2034bc,_0x26d0a1[_0x3255('0x15')][_0x3255('0x17')]);return _0x1327d6(_0x26d0a1[_0x3255('0x15')][_0x3255('0x17')]);}else{logger[_0x3255('0x18')](_0x3255('0x10'),_0x2034bc,_0x3255('0x11'));_0x1327d6(_0x26d0a1[_0x3255('0x19')][_0x3255('0x17')]);}})['catch'](function(_0x143688){logger['error'](_0x3255('0x10'),_0x2034bc,_0x143688);_0x131c55(_0x143688);});});}exports[_0x3255('0x1a')]=function(_0x43c797){var _0x27fbef=this;return new Promise(function(_0x47f3a5,_0x55fae9){return db[_0x3255('0x1b')][_0x3255('0x1c')](_0x43c797[_0x3255('0x1d')],{'raw':_0x43c797['options']?_0x43c797[_0x3255('0x1e')][_0x3255('0x1f')]===undefined?!![]:![]:!![]})[_0x3255('0xf')](function(_0x43f024){logger[_0x3255('0x18')](_0x3255('0x1a'),_0x43c797);logger[_0x3255('0x12')](_0x3255('0x1a'),_0x43c797,JSON[_0x3255('0x14')](_0x43f024));_0x47f3a5(_0x43f024);})[_0x3255('0x20')](function(_0x1b8eec){logger[_0x3255('0x15')](_0x3255('0x1a'),_0x1b8eec[_0x3255('0x17')],_0x43c797);_0x55fae9(_0x27fbef[_0x3255('0x15')](0x1f4,_0x1b8eec[_0x3255('0x17')]));});});};exports[_0x3255('0x21')]=function(_0x298bd0){var _0x2cb751=this;return new Promise(function(_0x49b9c9,_0x2b1cce){return db[_0x3255('0x1b')][_0x3255('0x22')](_0x298bd0[_0x3255('0x1d')],{'raw':_0x298bd0['options']?_0x298bd0[_0x3255('0x1e')][_0x3255('0x1f')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x298bd0[_0x3255('0x1e')]?_0x298bd0[_0x3255('0x1e')][_0x3255('0x23')]||null:null,'attributes':_0x298bd0['options']?_0x298bd0[_0x3255('0x1e')]['attributes']||null:null,'limit':_0x298bd0[_0x3255('0x1e')]?_0x298bd0[_0x3255('0x1e')][_0x3255('0x24')]||null:null})[_0x3255('0xf')](function(_0x466f71){logger[_0x3255('0x18')](_0x3255('0x21'),_0x298bd0);logger[_0x3255('0x12')](_0x3255('0x21'),_0x298bd0,JSON[_0x3255('0x14')](_0x466f71));_0x49b9c9(_0x466f71);})['catch'](function(_0x150e6f){logger[_0x3255('0x15')](_0x3255('0x21'),_0x150e6f['message'],_0x298bd0);_0x2b1cce(_0x2cb751['error'](0x1f4,_0x150e6f[_0x3255('0x17')]));});});};
\ No newline at end of file
+var _0x5bc1=['info','VoiceDialReport,\x20%s,\x20%s','request\x20sent','VoiceDialReport,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result','catch','CreateVoiceDialReport','VoiceDialReport','create','options','raw','debug','UpdateVoiceDialReport','update','body','where','attributes','limit','util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','rpc','client','request','then'];(function(_0x1b0047,_0x4a8dd1){var _0x15c674=function(_0xc5dd2f){while(--_0xc5dd2f){_0x1b0047['push'](_0x1b0047['shift']());}};_0x15c674(++_0x4a8dd1);}(_0x5bc1,0xdc));var _0x15bc=function(_0x4685e4,_0x51031f){_0x4685e4=_0x4685e4-0x0;var _0x5abd59=_0x5bc1[_0x4685e4];return _0x5abd59;};'use strict';var _=require('lodash');var util=require(_0x15bc('0x0'));var moment=require(_0x15bc('0x1'));var BPromise=require(_0x15bc('0x2'));var rs=require(_0x15bc('0x3'));var fs=require('fs');var Redis=require(_0x15bc('0x4'));var db=require(_0x15bc('0x5'))['db'];var utils=require(_0x15bc('0x6'));var logger=require('../../config/logger')(_0x15bc('0x7'));var config=require('../../config/environment');var jayson=require('jayson/promise');var client=jayson[_0x15bc('0x8')]['http']({'port':0x232a});function respondWithRpcPromise(_0x296e1f,_0x424440,_0x1c92c0){return new BPromise(function(_0x36d776,_0x2222c1){return client[_0x15bc('0x9')](_0x296e1f,_0x1c92c0)[_0x15bc('0xa')](function(_0x54e020){logger[_0x15bc('0xb')](_0x15bc('0xc'),_0x424440,_0x15bc('0xd'));logger['debug'](_0x15bc('0xe'),_0x424440,_0x15bc('0xd'),JSON[_0x15bc('0xf')](_0x54e020));if(_0x54e020[_0x15bc('0x10')]){if(_0x54e020['error'][_0x15bc('0x11')]===0x1f4){logger[_0x15bc('0x10')](_0x15bc('0xc'),_0x424440,_0x54e020[_0x15bc('0x10')][_0x15bc('0x12')]);return _0x2222c1(_0x54e020['error'][_0x15bc('0x12')]);}logger[_0x15bc('0x10')](_0x15bc('0xc'),_0x424440,_0x54e020['error']['message']);return _0x36d776(_0x54e020[_0x15bc('0x10')][_0x15bc('0x12')]);}else{logger[_0x15bc('0xb')](_0x15bc('0xc'),_0x424440,_0x15bc('0xd'));_0x36d776(_0x54e020[_0x15bc('0x13')][_0x15bc('0x12')]);}})[_0x15bc('0x14')](function(_0xf80e38){logger['error'](_0x15bc('0xc'),_0x424440,_0xf80e38);_0x2222c1(_0xf80e38);});});}exports[_0x15bc('0x15')]=function(_0x1c2916){var _0x80d61a=this;return new Promise(function(_0x198274,_0x2f9a28){return db[_0x15bc('0x16')][_0x15bc('0x17')](_0x1c2916['body'],{'raw':_0x1c2916[_0x15bc('0x18')]?_0x1c2916[_0x15bc('0x18')][_0x15bc('0x19')]===undefined?!![]:![]:!![]})[_0x15bc('0xa')](function(_0x5bfc04){logger['info'](_0x15bc('0x15'),_0x1c2916);logger[_0x15bc('0x1a')]('CreateVoiceDialReport',_0x1c2916,JSON[_0x15bc('0xf')](_0x5bfc04));_0x198274(_0x5bfc04);})['catch'](function(_0x6869ab){logger[_0x15bc('0x10')](_0x15bc('0x15'),_0x6869ab[_0x15bc('0x12')],_0x1c2916);_0x2f9a28(_0x80d61a[_0x15bc('0x10')](0x1f4,_0x6869ab[_0x15bc('0x12')]));});});};exports[_0x15bc('0x1b')]=function(_0x17b9a9){var _0x1a68c8=this;return new Promise(function(_0x29b7bd,_0x4b9e7f){return db[_0x15bc('0x16')][_0x15bc('0x1c')](_0x17b9a9[_0x15bc('0x1d')],{'raw':_0x17b9a9[_0x15bc('0x18')]?_0x17b9a9[_0x15bc('0x18')][_0x15bc('0x19')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x17b9a9[_0x15bc('0x18')]?_0x17b9a9['options'][_0x15bc('0x1e')]||null:null,'attributes':_0x17b9a9['options']?_0x17b9a9[_0x15bc('0x18')][_0x15bc('0x1f')]||null:null,'limit':_0x17b9a9[_0x15bc('0x18')]?_0x17b9a9[_0x15bc('0x18')][_0x15bc('0x20')]||null:null})['then'](function(_0x39049e){logger[_0x15bc('0xb')]('UpdateVoiceDialReport',_0x17b9a9);logger[_0x15bc('0x1a')](_0x15bc('0x1b'),_0x17b9a9,JSON[_0x15bc('0xf')](_0x39049e));_0x29b7bd(_0x39049e);})[_0x15bc('0x14')](function(_0x4f7fcf){logger[_0x15bc('0x10')](_0x15bc('0x1b'),_0x4f7fcf['message'],_0x17b9a9);_0x4b9e7f(_0x1a68c8[_0x15bc('0x10')](0x1f4,_0x4f7fcf[_0x15bc('0x12')]));});});};
\ No newline at end of file