Built motion from commit (unavailable).|2.5.6
[motion2.git] / server / api / openchannelQueueReport / openchannelQueueReport.rpc.js
index 1134388..0abbe9f 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xf451=['moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','rpc','../../config/environment','jayson/promise','http','then','info','OpenchannelQueueReport,\x20%s,\x20%s','request\x20sent','debug','OpenchannelQueueReport,\x20%s,\x20%s,\x20%s','stringify','error','code','result','message','CreateOpenchannelQueueReport','create','body','options','raw','catch','UpdateOpenchannelQueueReport','OpenchannelQueueReport','where','attributes','limit','lodash','util'];(function(_0x3d11be,_0x1b9a8c){var _0x4b657b=function(_0x4a96f2){while(--_0x4a96f2){_0x3d11be['push'](_0x3d11be['shift']());}};_0x4b657b(++_0x1b9a8c);}(_0xf451,0x64));var _0x1f45=function(_0x33e5c1,_0x2fdcc4){_0x33e5c1=_0x33e5c1-0x0;var _0x1ec977=_0xf451[_0x33e5c1];return _0x1ec977;};'use strict';var _=require(_0x1f45('0x0'));var util=require(_0x1f45('0x1'));var moment=require(_0x1f45('0x2'));var BPromise=require(_0x1f45('0x3'));var rs=require(_0x1f45('0x4'));var fs=require('fs');var Redis=require(_0x1f45('0x5'));var db=require(_0x1f45('0x6'))['db'];var utils=require(_0x1f45('0x7'));var logger=require('../../config/logger')(_0x1f45('0x8'));var config=require(_0x1f45('0x9'));var jayson=require(_0x1f45('0xa'));var client=jayson['client'][_0x1f45('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x1f998f,_0x408db9,_0x142c06){return new BPromise(function(_0x1664fb,_0x4c53d7){return client['request'](_0x1f998f,_0x142c06)[_0x1f45('0xc')](function(_0x23ec82){logger[_0x1f45('0xd')](_0x1f45('0xe'),_0x408db9,_0x1f45('0xf'));logger[_0x1f45('0x10')](_0x1f45('0x11'),_0x408db9,'request\x20sent',JSON[_0x1f45('0x12')](_0x23ec82));if(_0x23ec82['error']){if(_0x23ec82[_0x1f45('0x13')][_0x1f45('0x14')]===0x1f4){logger[_0x1f45('0x13')](_0x1f45('0xe'),_0x408db9,_0x23ec82[_0x1f45('0x13')]['message']);return _0x4c53d7(_0x23ec82[_0x1f45('0x13')]['message']);}logger[_0x1f45('0x13')](_0x1f45('0xe'),_0x408db9,_0x23ec82[_0x1f45('0x13')]['message']);return _0x1664fb(_0x23ec82[_0x1f45('0x13')]['message']);}else{logger[_0x1f45('0xd')](_0x1f45('0xe'),_0x408db9,_0x1f45('0xf'));_0x1664fb(_0x23ec82[_0x1f45('0x15')][_0x1f45('0x16')]);}})['catch'](function(_0x2fdb72){logger[_0x1f45('0x13')]('OpenchannelQueueReport,\x20%s,\x20%s',_0x408db9,_0x2fdb72);_0x4c53d7(_0x2fdb72);});});}exports[_0x1f45('0x17')]=function(_0x2df715){var _0x3d4437=this;return new Promise(function(_0x45905f,_0x5d96e8){return db['OpenchannelQueueReport'][_0x1f45('0x18')](_0x2df715[_0x1f45('0x19')],{'raw':_0x2df715[_0x1f45('0x1a')]?_0x2df715[_0x1f45('0x1a')][_0x1f45('0x1b')]===undefined?!![]:![]:!![]})[_0x1f45('0xc')](function(_0xc9dbe7){logger[_0x1f45('0xd')](_0x1f45('0x17'),_0x2df715);logger[_0x1f45('0x10')](_0x1f45('0x17'),_0x2df715,JSON[_0x1f45('0x12')](_0xc9dbe7));_0x45905f(_0xc9dbe7);})[_0x1f45('0x1c')](function(_0x2194d8){logger[_0x1f45('0x13')](_0x1f45('0x17'),_0x2194d8[_0x1f45('0x16')],_0x2df715);_0x5d96e8(_0x3d4437[_0x1f45('0x13')](0x1f4,_0x2194d8[_0x1f45('0x16')]));});});};exports[_0x1f45('0x1d')]=function(_0x1394d3){var _0x2c5a1d=this;return new Promise(function(_0x18420f,_0x5e9792){return db[_0x1f45('0x1e')]['update'](_0x1394d3[_0x1f45('0x19')],{'raw':_0x1394d3['options']?_0x1394d3[_0x1f45('0x1a')]['raw']===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x1394d3['options']?_0x1394d3[_0x1f45('0x1a')][_0x1f45('0x1f')]||null:null,'attributes':_0x1394d3['options']?_0x1394d3[_0x1f45('0x1a')][_0x1f45('0x20')]||null:null,'limit':_0x1394d3[_0x1f45('0x1a')]?_0x1394d3[_0x1f45('0x1a')][_0x1f45('0x21')]||null:null})[_0x1f45('0xc')](function(_0x228592){logger[_0x1f45('0xd')](_0x1f45('0x1d'),_0x1394d3);logger['debug']('UpdateOpenchannelQueueReport',_0x1394d3,JSON[_0x1f45('0x12')](_0x228592));_0x18420f(_0x228592);})[_0x1f45('0x1c')](function(_0x266bde){logger[_0x1f45('0x13')](_0x1f45('0x1d'),_0x266bde[_0x1f45('0x16')],_0x1394d3);_0x5e9792(_0x2c5a1d[_0x1f45('0x13')](0x1f4,_0x266bde[_0x1f45('0x16')]));});});};
\ No newline at end of file
+var _0xd937=['rpc','../../config/environment','jayson/promise','http','request','then','OpenchannelQueueReport,\x20%s,\x20%s','request\x20sent','debug','OpenchannelQueueReport,\x20%s,\x20%s,\x20%s','code','error','message','result','catch','CreateOpenchannelQueueReport','OpenchannelQueueReport','body','options','raw','info','stringify','UpdateOpenchannelQueueReport','update','attributes','limit','util','moment','randomstring','../../mysqldb','../../config/utils','../../config/logger'];(function(_0x33bb60,_0x1d74dd){var _0x14f5b7=function(_0x5a41ab){while(--_0x5a41ab){_0x33bb60['push'](_0x33bb60['shift']());}};_0x14f5b7(++_0x1d74dd);}(_0xd937,0x9a));var _0x7d93=function(_0x386fd5,_0x361b6f){_0x386fd5=_0x386fd5-0x0;var _0x266233=_0xd937[_0x386fd5];return _0x266233;};'use strict';var _=require('lodash');var util=require(_0x7d93('0x0'));var moment=require(_0x7d93('0x1'));var BPromise=require('bluebird');var rs=require(_0x7d93('0x2'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0x7d93('0x3'))['db'];var utils=require(_0x7d93('0x4'));var logger=require(_0x7d93('0x5'))(_0x7d93('0x6'));var config=require(_0x7d93('0x7'));var jayson=require(_0x7d93('0x8'));var client=jayson['client'][_0x7d93('0x9')]({'port':0x232a});function respondWithRpcPromise(_0x2fbc92,_0x56e0cc,_0x3e6b1f){return new BPromise(function(_0x522421,_0xfa4e28){return client[_0x7d93('0xa')](_0x2fbc92,_0x3e6b1f)[_0x7d93('0xb')](function(_0x2c6654){logger['info'](_0x7d93('0xc'),_0x56e0cc,_0x7d93('0xd'));logger[_0x7d93('0xe')](_0x7d93('0xf'),_0x56e0cc,_0x7d93('0xd'),JSON['stringify'](_0x2c6654));if(_0x2c6654['error']){if(_0x2c6654['error'][_0x7d93('0x10')]===0x1f4){logger['error']('OpenchannelQueueReport,\x20%s,\x20%s',_0x56e0cc,_0x2c6654[_0x7d93('0x11')]['message']);return _0xfa4e28(_0x2c6654['error']['message']);}logger['error'](_0x7d93('0xc'),_0x56e0cc,_0x2c6654[_0x7d93('0x11')][_0x7d93('0x12')]);return _0x522421(_0x2c6654[_0x7d93('0x11')]['message']);}else{logger['info'](_0x7d93('0xc'),_0x56e0cc,_0x7d93('0xd'));_0x522421(_0x2c6654[_0x7d93('0x13')][_0x7d93('0x12')]);}})[_0x7d93('0x14')](function(_0x55393f){logger[_0x7d93('0x11')]('OpenchannelQueueReport,\x20%s,\x20%s',_0x56e0cc,_0x55393f);_0xfa4e28(_0x55393f);});});}exports[_0x7d93('0x15')]=function(_0x1461ed){var _0x3020b8=this;return new Promise(function(_0x18c756,_0x2df6bf){return db[_0x7d93('0x16')]['create'](_0x1461ed[_0x7d93('0x17')],{'raw':_0x1461ed['options']?_0x1461ed[_0x7d93('0x18')][_0x7d93('0x19')]===undefined?!![]:![]:!![]})['then'](function(_0x5acc9f){logger[_0x7d93('0x1a')]('CreateOpenchannelQueueReport',_0x1461ed);logger[_0x7d93('0xe')](_0x7d93('0x15'),_0x1461ed,JSON[_0x7d93('0x1b')](_0x5acc9f));_0x18c756(_0x5acc9f);})[_0x7d93('0x14')](function(_0x4d067a){logger[_0x7d93('0x11')](_0x7d93('0x15'),_0x4d067a['message'],_0x1461ed);_0x2df6bf(_0x3020b8[_0x7d93('0x11')](0x1f4,_0x4d067a['message']));});});};exports[_0x7d93('0x1c')]=function(_0x346d2c){var _0x18727b=this;return new Promise(function(_0x52973a,_0x3f415a){return db['OpenchannelQueueReport'][_0x7d93('0x1d')](_0x346d2c[_0x7d93('0x17')],{'raw':_0x346d2c[_0x7d93('0x18')]?_0x346d2c[_0x7d93('0x18')][_0x7d93('0x19')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x346d2c[_0x7d93('0x18')]?_0x346d2c['options']['where']||null:null,'attributes':_0x346d2c[_0x7d93('0x18')]?_0x346d2c[_0x7d93('0x18')][_0x7d93('0x1e')]||null:null,'limit':_0x346d2c[_0x7d93('0x18')]?_0x346d2c[_0x7d93('0x18')][_0x7d93('0x1f')]||null:null})[_0x7d93('0xb')](function(_0x387e96){logger[_0x7d93('0x1a')](_0x7d93('0x1c'),_0x346d2c);logger[_0x7d93('0xe')]('UpdateOpenchannelQueueReport',_0x346d2c,JSON[_0x7d93('0x1b')](_0x387e96));_0x52973a(_0x387e96);})['catch'](function(_0x7b2ca4){logger[_0x7d93('0x11')](_0x7d93('0x1c'),_0x7b2ca4[_0x7d93('0x12')],_0x346d2c);_0x3f415a(_0x18727b[_0x7d93('0x11')](0x1f4,_0x7b2ca4[_0x7d93('0x12')]));});});};
\ No newline at end of file