Built motion from commit (unavailable).|2.5.31
[motion2.git] / server / api / faxQueueReport / faxQueueReport.rpc.js
index 22a2d0a..3d971c5 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x6f27=['client','http','request','then','info','FaxQueueReport,\x20%s,\x20%s','request\x20sent','debug','stringify','code','error','message','result','catch','CreateFaxQueueReport','FaxQueueReport','body','options','raw','UpdateFaxQueueReport','where','limit','lodash','util','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','rpc','../../config/environment','jayson/promise'];(function(_0x2b5aec,_0x2fa6e1){var _0x8ec4ac=function(_0x34b3d9){while(--_0x34b3d9){_0x2b5aec['push'](_0x2b5aec['shift']());}};_0x8ec4ac(++_0x2fa6e1);}(_0x6f27,0xd6));var _0x76f2=function(_0x13033f,_0x2045af){_0x13033f=_0x13033f-0x0;var _0x2ed576=_0x6f27[_0x13033f];return _0x2ed576;};'use strict';var _=require(_0x76f2('0x0'));var util=require(_0x76f2('0x1'));var moment=require('moment');var BPromise=require(_0x76f2('0x2'));var rs=require(_0x76f2('0x3'));var fs=require('fs');var Redis=require(_0x76f2('0x4'));var db=require(_0x76f2('0x5'))['db'];var utils=require(_0x76f2('0x6'));var logger=require('../../config/logger')(_0x76f2('0x7'));var config=require(_0x76f2('0x8'));var jayson=require(_0x76f2('0x9'));var client=jayson[_0x76f2('0xa')][_0x76f2('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x53f6f0,_0x5048fd,_0x57bc87){return new BPromise(function(_0x4743b0,_0x54ca97){return client[_0x76f2('0xc')](_0x53f6f0,_0x57bc87)[_0x76f2('0xd')](function(_0x3b17f2){logger[_0x76f2('0xe')](_0x76f2('0xf'),_0x5048fd,_0x76f2('0x10'));logger[_0x76f2('0x11')]('FaxQueueReport,\x20%s,\x20%s,\x20%s',_0x5048fd,_0x76f2('0x10'),JSON[_0x76f2('0x12')](_0x3b17f2));if(_0x3b17f2['error']){if(_0x3b17f2['error'][_0x76f2('0x13')]===0x1f4){logger['error']('FaxQueueReport,\x20%s,\x20%s',_0x5048fd,_0x3b17f2[_0x76f2('0x14')][_0x76f2('0x15')]);return _0x54ca97(_0x3b17f2[_0x76f2('0x14')][_0x76f2('0x15')]);}logger[_0x76f2('0x14')]('FaxQueueReport,\x20%s,\x20%s',_0x5048fd,_0x3b17f2[_0x76f2('0x14')]['message']);return _0x4743b0(_0x3b17f2[_0x76f2('0x14')][_0x76f2('0x15')]);}else{logger[_0x76f2('0xe')](_0x76f2('0xf'),_0x5048fd,_0x76f2('0x10'));_0x4743b0(_0x3b17f2[_0x76f2('0x16')][_0x76f2('0x15')]);}})[_0x76f2('0x17')](function(_0x369e2a){logger['error']('FaxQueueReport,\x20%s,\x20%s',_0x5048fd,_0x369e2a);_0x54ca97(_0x369e2a);});});}exports[_0x76f2('0x18')]=function(_0x147a73){var _0x5776de=this;return new Promise(function(_0x4a01d9,_0x278461){return db[_0x76f2('0x19')]['create'](_0x147a73[_0x76f2('0x1a')],{'raw':_0x147a73[_0x76f2('0x1b')]?_0x147a73['options'][_0x76f2('0x1c')]===undefined?!![]:![]:!![]})[_0x76f2('0xd')](function(_0x65ff3f){logger[_0x76f2('0xe')](_0x76f2('0x18'),_0x147a73);logger[_0x76f2('0x11')](_0x76f2('0x18'),_0x147a73,JSON[_0x76f2('0x12')](_0x65ff3f));_0x4a01d9(_0x65ff3f);})[_0x76f2('0x17')](function(_0x18ad6e){logger[_0x76f2('0x14')](_0x76f2('0x18'),_0x18ad6e[_0x76f2('0x15')],_0x147a73);_0x278461(_0x5776de[_0x76f2('0x14')](0x1f4,_0x18ad6e[_0x76f2('0x15')]));});});};exports[_0x76f2('0x1d')]=function(_0x918cd6){var _0x4007f5=this;return new Promise(function(_0x5b7f51,_0x2cf48f){return db[_0x76f2('0x19')]['update'](_0x918cd6[_0x76f2('0x1a')],{'raw':_0x918cd6[_0x76f2('0x1b')]?_0x918cd6[_0x76f2('0x1b')][_0x76f2('0x1c')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x918cd6[_0x76f2('0x1b')]?_0x918cd6[_0x76f2('0x1b')][_0x76f2('0x1e')]||null:null,'attributes':_0x918cd6[_0x76f2('0x1b')]?_0x918cd6[_0x76f2('0x1b')]['attributes']||null:null,'limit':_0x918cd6[_0x76f2('0x1b')]?_0x918cd6['options'][_0x76f2('0x1f')]||null:null})[_0x76f2('0xd')](function(_0xb191c1){logger[_0x76f2('0xe')](_0x76f2('0x1d'),_0x918cd6);logger[_0x76f2('0x11')]('UpdateFaxQueueReport',_0x918cd6,JSON[_0x76f2('0x12')](_0xb191c1));_0x5b7f51(_0xb191c1);})[_0x76f2('0x17')](function(_0x54465c){logger[_0x76f2('0x14')]('UpdateFaxQueueReport',_0x54465c[_0x76f2('0x15')],_0x918cd6);_0x2cf48f(_0x4007f5[_0x76f2('0x14')](0x1f4,_0x54465c[_0x76f2('0x15')]));});});};
\ No newline at end of file
+var _0x1856=['then','info','FaxQueueReport,\x20%s,\x20%s','request\x20sent','FaxQueueReport,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result','FaxQueueReport','options','CreateFaxQueueReport','debug','catch','UpdateFaxQueueReport','update','body','raw','attributes','limit','lodash','util','moment','randomstring','ioredis','../../mysqldb','../../config/utils','rpc','../../config/environment','client','http'];(function(_0x5c6272,_0xd82df5){var _0x19c236=function(_0x332352){while(--_0x332352){_0x5c6272['push'](_0x5c6272['shift']());}};_0x19c236(++_0xd82df5);}(_0x1856,0xd5));var _0x6185=function(_0x307742,_0x20440d){_0x307742=_0x307742-0x0;var _0x342786=_0x1856[_0x307742];return _0x342786;};'use strict';var _=require(_0x6185('0x0'));var util=require(_0x6185('0x1'));var moment=require(_0x6185('0x2'));var BPromise=require('bluebird');var rs=require(_0x6185('0x3'));var fs=require('fs');var Redis=require(_0x6185('0x4'));var db=require(_0x6185('0x5'))['db'];var utils=require(_0x6185('0x6'));var logger=require('../../config/logger')(_0x6185('0x7'));var config=require(_0x6185('0x8'));var jayson=require('jayson/promise');var client=jayson[_0x6185('0x9')][_0x6185('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x3659a3,_0x332f96,_0x7c6fb6){return new BPromise(function(_0x5b01e6,_0x3bd28d){return client['request'](_0x3659a3,_0x7c6fb6)[_0x6185('0xb')](function(_0x3f23f5){logger[_0x6185('0xc')](_0x6185('0xd'),_0x332f96,_0x6185('0xe'));logger['debug'](_0x6185('0xf'),_0x332f96,_0x6185('0xe'),JSON[_0x6185('0x10')](_0x3f23f5));if(_0x3f23f5[_0x6185('0x11')]){if(_0x3f23f5[_0x6185('0x11')][_0x6185('0x12')]===0x1f4){logger['error'](_0x6185('0xd'),_0x332f96,_0x3f23f5['error'][_0x6185('0x13')]);return _0x3bd28d(_0x3f23f5[_0x6185('0x11')][_0x6185('0x13')]);}logger[_0x6185('0x11')]('FaxQueueReport,\x20%s,\x20%s',_0x332f96,_0x3f23f5[_0x6185('0x11')][_0x6185('0x13')]);return _0x5b01e6(_0x3f23f5[_0x6185('0x11')][_0x6185('0x13')]);}else{logger['info'](_0x6185('0xd'),_0x332f96,_0x6185('0xe'));_0x5b01e6(_0x3f23f5[_0x6185('0x14')][_0x6185('0x13')]);}})['catch'](function(_0x4cd7ff){logger[_0x6185('0x11')](_0x6185('0xd'),_0x332f96,_0x4cd7ff);_0x3bd28d(_0x4cd7ff);});});}exports['CreateFaxQueueReport']=function(_0xde67a0){var _0x2e9667=this;return new Promise(function(_0x47a876,_0x140975){return db[_0x6185('0x15')]['create'](_0xde67a0['body'],{'raw':_0xde67a0[_0x6185('0x16')]?_0xde67a0['options']['raw']===undefined?!![]:![]:!![]})[_0x6185('0xb')](function(_0x535898){logger[_0x6185('0xc')](_0x6185('0x17'),_0xde67a0);logger[_0x6185('0x18')](_0x6185('0x17'),_0xde67a0,JSON[_0x6185('0x10')](_0x535898));_0x47a876(_0x535898);})[_0x6185('0x19')](function(_0x31aa82){logger[_0x6185('0x11')](_0x6185('0x17'),_0x31aa82[_0x6185('0x13')],_0xde67a0);_0x140975(_0x2e9667[_0x6185('0x11')](0x1f4,_0x31aa82['message']));});});};exports[_0x6185('0x1a')]=function(_0x2a43b5){var _0x24991f=this;return new Promise(function(_0x48a328,_0x20120a){return db[_0x6185('0x15')][_0x6185('0x1b')](_0x2a43b5[_0x6185('0x1c')],{'raw':_0x2a43b5[_0x6185('0x16')]?_0x2a43b5[_0x6185('0x16')][_0x6185('0x1d')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x2a43b5[_0x6185('0x16')]?_0x2a43b5[_0x6185('0x16')]['where']||null:null,'attributes':_0x2a43b5[_0x6185('0x16')]?_0x2a43b5[_0x6185('0x16')][_0x6185('0x1e')]||null:null,'limit':_0x2a43b5[_0x6185('0x16')]?_0x2a43b5['options'][_0x6185('0x1f')]||null:null})['then'](function(_0x56dc52){logger[_0x6185('0xc')]('UpdateFaxQueueReport',_0x2a43b5);logger[_0x6185('0x18')]('UpdateFaxQueueReport',_0x2a43b5,JSON[_0x6185('0x10')](_0x56dc52));_0x48a328(_0x56dc52);})[_0x6185('0x19')](function(_0x12a16b){logger[_0x6185('0x11')](_0x6185('0x1a'),_0x12a16b[_0x6185('0x13')],_0x2a43b5);_0x20120a(_0x24991f['error'](0x1f4,_0x12a16b[_0x6185('0x13')]));});});};
\ No newline at end of file