Built motion from commit (unavailable).|2.5.11
[motion2.git] / server / api / faxQueueReport / faxQueueReport.rpc.js
index baeb2ca..0e2daf3 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xaab0=['lodash','util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','http','request','then','info','FaxQueueReport,\x20%s,\x20%s','debug','request\x20sent','stringify','error','code','message','CreateFaxQueueReport','FaxQueueReport','create','options','raw','UpdateFaxQueueReport','update','where','attributes','catch'];(function(_0x1711b,_0x3d9a4f){var _0x336962=function(_0x31d7ba){while(--_0x31d7ba){_0x1711b['push'](_0x1711b['shift']());}};_0x336962(++_0x3d9a4f);}(_0xaab0,0x1ef));var _0x0aab=function(_0x58ee19,_0xdf0765){_0x58ee19=_0x58ee19-0x0;var _0x49af25=_0xaab0[_0x58ee19];return _0x49af25;};'use strict';var _=require(_0x0aab('0x0'));var util=require(_0x0aab('0x1'));var moment=require(_0x0aab('0x2'));var BPromise=require(_0x0aab('0x3'));var rs=require(_0x0aab('0x4'));var fs=require('fs');var Redis=require(_0x0aab('0x5'));var db=require(_0x0aab('0x6'))['db'];var utils=require(_0x0aab('0x7'));var logger=require(_0x0aab('0x8'))(_0x0aab('0x9'));var config=require(_0x0aab('0xa'));var jayson=require(_0x0aab('0xb'));var client=jayson['client'][_0x0aab('0xc')]({'port':0x232a});function respondWithRpcPromise(_0x5f0875,_0x4ff810,_0x1dcea1){return new BPromise(function(_0x1a185f,_0x58ca3c){return client[_0x0aab('0xd')](_0x5f0875,_0x1dcea1)[_0x0aab('0xe')](function(_0x12204a){logger[_0x0aab('0xf')](_0x0aab('0x10'),_0x4ff810,'request\x20sent');logger[_0x0aab('0x11')]('FaxQueueReport,\x20%s,\x20%s,\x20%s',_0x4ff810,_0x0aab('0x12'),JSON[_0x0aab('0x13')](_0x12204a));if(_0x12204a['error']){if(_0x12204a[_0x0aab('0x14')][_0x0aab('0x15')]===0x1f4){logger[_0x0aab('0x14')](_0x0aab('0x10'),_0x4ff810,_0x12204a[_0x0aab('0x14')][_0x0aab('0x16')]);return _0x58ca3c(_0x12204a[_0x0aab('0x14')][_0x0aab('0x16')]);}logger[_0x0aab('0x14')](_0x0aab('0x10'),_0x4ff810,_0x12204a['error'][_0x0aab('0x16')]);return _0x1a185f(_0x12204a[_0x0aab('0x14')][_0x0aab('0x16')]);}else{logger[_0x0aab('0xf')](_0x0aab('0x10'),_0x4ff810,_0x0aab('0x12'));_0x1a185f(_0x12204a['result']['message']);}})['catch'](function(_0x5522f9){logger['error'](_0x0aab('0x10'),_0x4ff810,_0x5522f9);_0x58ca3c(_0x5522f9);});});}exports[_0x0aab('0x17')]=function(_0x2455b9){var _0x56dcd8=this;return new Promise(function(_0x3d648f,_0x2bf83b){return db[_0x0aab('0x18')][_0x0aab('0x19')](_0x2455b9['body'],{'raw':_0x2455b9[_0x0aab('0x1a')]?_0x2455b9['options'][_0x0aab('0x1b')]===undefined?!![]:![]:!![]})['then'](function(_0x3b633b){logger[_0x0aab('0xf')](_0x0aab('0x17'),_0x2455b9);logger[_0x0aab('0x11')](_0x0aab('0x17'),_0x2455b9,JSON[_0x0aab('0x13')](_0x3b633b));_0x3d648f(_0x3b633b);})['catch'](function(_0x59f1f6){logger[_0x0aab('0x14')](_0x0aab('0x17'),_0x59f1f6['message'],_0x2455b9);_0x2bf83b(_0x56dcd8[_0x0aab('0x14')](0x1f4,_0x59f1f6[_0x0aab('0x16')]));});});};exports[_0x0aab('0x1c')]=function(_0x5223c3){var _0x2a41e4=this;return new Promise(function(_0x2f3b71,_0x382005){return db[_0x0aab('0x18')][_0x0aab('0x1d')](_0x5223c3['body'],{'raw':_0x5223c3[_0x0aab('0x1a')]?_0x5223c3['options']['raw']===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x5223c3[_0x0aab('0x1a')]?_0x5223c3['options'][_0x0aab('0x1e')]||null:null,'attributes':_0x5223c3[_0x0aab('0x1a')]?_0x5223c3[_0x0aab('0x1a')][_0x0aab('0x1f')]||null:null,'limit':_0x5223c3['options']?_0x5223c3[_0x0aab('0x1a')]['limit']||null:null})[_0x0aab('0xe')](function(_0x337ceb){logger[_0x0aab('0xf')](_0x0aab('0x1c'),_0x5223c3);logger[_0x0aab('0x11')]('UpdateFaxQueueReport',_0x5223c3,JSON[_0x0aab('0x13')](_0x337ceb));_0x2f3b71(_0x337ceb);})[_0x0aab('0x20')](function(_0x4238a5){logger[_0x0aab('0x14')](_0x0aab('0x1c'),_0x4238a5[_0x0aab('0x16')],_0x5223c3);_0x382005(_0x2a41e4['error'](0x1f4,_0x4238a5[_0x0aab('0x16')]));});});};
\ No newline at end of file
+var _0xcc0c=['update','raw','where','attributes','lodash','util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','client','info','debug','FaxQueueReport,\x20%s,\x20%s,\x20%s','request\x20sent','stringify','error','code','FaxQueueReport,\x20%s,\x20%s','message','catch','CreateFaxQueueReport','FaxQueueReport','create','body','options','then','UpdateFaxQueueReport'];(function(_0x33032e,_0x31411a){var _0x13316b=function(_0x2fb049){while(--_0x2fb049){_0x33032e['push'](_0x33032e['shift']());}};_0x13316b(++_0x31411a);}(_0xcc0c,0x1f3));var _0xccc0=function(_0x303986,_0x5c751c){_0x303986=_0x303986-0x0;var _0x4c4431=_0xcc0c[_0x303986];return _0x4c4431;};'use strict';var _=require(_0xccc0('0x0'));var util=require(_0xccc0('0x1'));var moment=require(_0xccc0('0x2'));var BPromise=require(_0xccc0('0x3'));var rs=require(_0xccc0('0x4'));var fs=require('fs');var Redis=require(_0xccc0('0x5'));var db=require(_0xccc0('0x6'))['db'];var utils=require(_0xccc0('0x7'));var logger=require(_0xccc0('0x8'))(_0xccc0('0x9'));var config=require(_0xccc0('0xa'));var jayson=require('jayson/promise');var client=jayson[_0xccc0('0xb')]['http']({'port':0x232a});function respondWithRpcPromise(_0x1e295c,_0x1d4d41,_0x2cb89a){return new BPromise(function(_0x44e06b,_0x1188c5){return client['request'](_0x1e295c,_0x2cb89a)['then'](function(_0x23f43b){logger[_0xccc0('0xc')]('FaxQueueReport,\x20%s,\x20%s',_0x1d4d41,'request\x20sent');logger[_0xccc0('0xd')](_0xccc0('0xe'),_0x1d4d41,_0xccc0('0xf'),JSON[_0xccc0('0x10')](_0x23f43b));if(_0x23f43b['error']){if(_0x23f43b[_0xccc0('0x11')][_0xccc0('0x12')]===0x1f4){logger[_0xccc0('0x11')](_0xccc0('0x13'),_0x1d4d41,_0x23f43b[_0xccc0('0x11')][_0xccc0('0x14')]);return _0x1188c5(_0x23f43b[_0xccc0('0x11')][_0xccc0('0x14')]);}logger[_0xccc0('0x11')]('FaxQueueReport,\x20%s,\x20%s',_0x1d4d41,_0x23f43b[_0xccc0('0x11')][_0xccc0('0x14')]);return _0x44e06b(_0x23f43b[_0xccc0('0x11')][_0xccc0('0x14')]);}else{logger[_0xccc0('0xc')](_0xccc0('0x13'),_0x1d4d41,_0xccc0('0xf'));_0x44e06b(_0x23f43b['result'][_0xccc0('0x14')]);}})[_0xccc0('0x15')](function(_0x47ecbc){logger['error'](_0xccc0('0x13'),_0x1d4d41,_0x47ecbc);_0x1188c5(_0x47ecbc);});});}exports[_0xccc0('0x16')]=function(_0x1086b1){var _0x494843=this;return new Promise(function(_0x26a406,_0x3e1811){return db[_0xccc0('0x17')][_0xccc0('0x18')](_0x1086b1[_0xccc0('0x19')],{'raw':_0x1086b1[_0xccc0('0x1a')]?_0x1086b1[_0xccc0('0x1a')]['raw']===undefined?!![]:![]:!![]})[_0xccc0('0x1b')](function(_0x5ea2fe){logger['info'](_0xccc0('0x16'),_0x1086b1);logger['debug'](_0xccc0('0x16'),_0x1086b1,JSON[_0xccc0('0x10')](_0x5ea2fe));_0x26a406(_0x5ea2fe);})['catch'](function(_0x26bf29){logger['error'](_0xccc0('0x16'),_0x26bf29[_0xccc0('0x14')],_0x1086b1);_0x3e1811(_0x494843[_0xccc0('0x11')](0x1f4,_0x26bf29[_0xccc0('0x14')]));});});};exports[_0xccc0('0x1c')]=function(_0xcabeb){var _0xff954e=this;return new Promise(function(_0x3e46e7,_0x7b8a23){return db[_0xccc0('0x17')][_0xccc0('0x1d')](_0xcabeb[_0xccc0('0x19')],{'raw':_0xcabeb[_0xccc0('0x1a')]?_0xcabeb['options'][_0xccc0('0x1e')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0xcabeb[_0xccc0('0x1a')]?_0xcabeb[_0xccc0('0x1a')][_0xccc0('0x1f')]||null:null,'attributes':_0xcabeb[_0xccc0('0x1a')]?_0xcabeb[_0xccc0('0x1a')][_0xccc0('0x20')]||null:null,'limit':_0xcabeb['options']?_0xcabeb[_0xccc0('0x1a')]['limit']||null:null})[_0xccc0('0x1b')](function(_0x474dea){logger[_0xccc0('0xc')](_0xccc0('0x1c'),_0xcabeb);logger[_0xccc0('0xd')](_0xccc0('0x1c'),_0xcabeb,JSON[_0xccc0('0x10')](_0x474dea));_0x3e46e7(_0x474dea);})[_0xccc0('0x15')](function(_0x1747b4){logger['error']('UpdateFaxQueueReport',_0x1747b4[_0xccc0('0x14')],_0xcabeb);_0x7b8a23(_0xff954e[_0xccc0('0x11')](0x1f4,_0x1747b4[_0xccc0('0x14')]));});});};
\ No newline at end of file