Built motion from commit a61a4a20.|2.5.46
[motion2.git] / server / api / faxApplication / faxApplication.rpc.js
index f5e6304..a8e383a 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x0cbf=['lodash','util','moment','bluebird','ioredis','../../mysqldb','../../config/utils','../../config/logger','../../config/environment','client','request','then','info','FaxApplication,\x20%s,\x20%s','FaxApplication,\x20%s,\x20%s,\x20%s','stringify','error','code','message','request\x20sent','result','catch','UpdateFaxApplication','FaxApplication','options','where','attributes','limit','debug'];(function(_0x2261ce,_0x9ed8b6){var _0x524640=function(_0x3cbb90){while(--_0x3cbb90){_0x2261ce['push'](_0x2261ce['shift']());}};_0x524640(++_0x9ed8b6);}(_0x0cbf,0x122));var _0xf0cb=function(_0x262f0f,_0x42784c){_0x262f0f=_0x262f0f-0x0;var _0x23e611=_0x0cbf[_0x262f0f];return _0x23e611;};'use strict';var _=require(_0xf0cb('0x0'));var util=require(_0xf0cb('0x1'));var moment=require(_0xf0cb('0x2'));var BPromise=require(_0xf0cb('0x3'));var rs=require('randomstring');var fs=require('fs');var Redis=require(_0xf0cb('0x4'));var db=require(_0xf0cb('0x5'))['db'];var utils=require(_0xf0cb('0x6'));var logger=require(_0xf0cb('0x7'))('rpc');var config=require(_0xf0cb('0x8'));var jayson=require('jayson/promise');var client=jayson[_0xf0cb('0x9')]['http']({'port':0x232a});function respondWithRpcPromise(_0x1152c9,_0x3366ba,_0x1b99fe){return new BPromise(function(_0x466b5e,_0x4f3371){return client[_0xf0cb('0xa')](_0x1152c9,_0x1b99fe)[_0xf0cb('0xb')](function(_0x983d16){logger[_0xf0cb('0xc')](_0xf0cb('0xd'),_0x3366ba,'request\x20sent');logger['debug'](_0xf0cb('0xe'),_0x3366ba,'request\x20sent',JSON[_0xf0cb('0xf')](_0x983d16));if(_0x983d16[_0xf0cb('0x10')]){if(_0x983d16[_0xf0cb('0x10')][_0xf0cb('0x11')]===0x1f4){logger[_0xf0cb('0x10')]('FaxApplication,\x20%s,\x20%s',_0x3366ba,_0x983d16[_0xf0cb('0x10')][_0xf0cb('0x12')]);return _0x4f3371(_0x983d16[_0xf0cb('0x10')][_0xf0cb('0x12')]);}logger[_0xf0cb('0x10')](_0xf0cb('0xd'),_0x3366ba,_0x983d16[_0xf0cb('0x10')][_0xf0cb('0x12')]);return _0x466b5e(_0x983d16['error'][_0xf0cb('0x12')]);}else{logger[_0xf0cb('0xc')](_0xf0cb('0xd'),_0x3366ba,_0xf0cb('0x13'));_0x466b5e(_0x983d16[_0xf0cb('0x14')][_0xf0cb('0x12')]);}})[_0xf0cb('0x15')](function(_0x141f88){logger[_0xf0cb('0x10')](_0xf0cb('0xd'),_0x3366ba,_0x141f88);_0x4f3371(_0x141f88);});});}exports[_0xf0cb('0x16')]=function(_0xe86227){var _0x47b138=this;return new Promise(function(_0x517102,_0x15111f){return db[_0xf0cb('0x17')]['update'](_0xe86227['body'],{'raw':_0xe86227[_0xf0cb('0x18')]?_0xe86227[_0xf0cb('0x18')]['raw']===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0xe86227['options']?_0xe86227[_0xf0cb('0x18')][_0xf0cb('0x19')]||null:null,'attributes':_0xe86227[_0xf0cb('0x18')]?_0xe86227[_0xf0cb('0x18')][_0xf0cb('0x1a')]||null:null,'limit':_0xe86227[_0xf0cb('0x18')]?_0xe86227['options'][_0xf0cb('0x1b')]||null:null})[_0xf0cb('0xb')](function(_0x46d480){logger[_0xf0cb('0xc')](_0xf0cb('0x16'),_0xe86227);logger[_0xf0cb('0x1c')](_0xf0cb('0x16'),_0xe86227,JSON[_0xf0cb('0xf')](_0x46d480));_0x517102(_0x46d480);})[_0xf0cb('0x15')](function(_0x25d04d){logger[_0xf0cb('0x10')]('UpdateFaxApplication',_0x25d04d['message'],_0xe86227);_0x15111f(_0x47b138[_0xf0cb('0x10')](0x1f4,_0x25d04d[_0xf0cb('0x12')]));});});};
\ No newline at end of file
+var _0xa70f=['debug','FaxApplication,\x20%s,\x20%s,\x20%s','error','code','message','result','catch','UpdateFaxApplication','options','where','attributes','limit','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','jayson/promise','client','http','request','then','info','FaxApplication,\x20%s,\x20%s'];(function(_0x4c9c28,_0x4c6af4){var _0x58d45=function(_0x4683d2){while(--_0x4683d2){_0x4c9c28['push'](_0x4c9c28['shift']());}};_0x58d45(++_0x4c6af4);}(_0xa70f,0xb4));var _0xfa70=function(_0x336265,_0x131fc2){_0x336265=_0x336265-0x0;var _0x4b1a4b=_0xa70f[_0x336265];return _0x4b1a4b;};'use strict';var _=require('lodash');var util=require('util');var moment=require('moment');var BPromise=require(_0xfa70('0x0'));var rs=require(_0xfa70('0x1'));var fs=require('fs');var Redis=require(_0xfa70('0x2'));var db=require(_0xfa70('0x3'))['db'];var utils=require(_0xfa70('0x4'));var logger=require('../../config/logger')('rpc');var config=require('../../config/environment');var jayson=require(_0xfa70('0x5'));var client=jayson[_0xfa70('0x6')][_0xfa70('0x7')]({'port':0x232a});function respondWithRpcPromise(_0x2fd406,_0xae7c5,_0x527aa1){return new BPromise(function(_0x5c5bb4,_0x46fbac){return client[_0xfa70('0x8')](_0x2fd406,_0x527aa1)[_0xfa70('0x9')](function(_0x210a44){logger[_0xfa70('0xa')](_0xfa70('0xb'),_0xae7c5,'request\x20sent');logger[_0xfa70('0xc')](_0xfa70('0xd'),_0xae7c5,'request\x20sent',JSON['stringify'](_0x210a44));if(_0x210a44[_0xfa70('0xe')]){if(_0x210a44['error'][_0xfa70('0xf')]===0x1f4){logger[_0xfa70('0xe')](_0xfa70('0xb'),_0xae7c5,_0x210a44[_0xfa70('0xe')][_0xfa70('0x10')]);return _0x46fbac(_0x210a44[_0xfa70('0xe')][_0xfa70('0x10')]);}logger[_0xfa70('0xe')](_0xfa70('0xb'),_0xae7c5,_0x210a44['error'][_0xfa70('0x10')]);return _0x5c5bb4(_0x210a44[_0xfa70('0xe')]['message']);}else{logger[_0xfa70('0xa')](_0xfa70('0xb'),_0xae7c5,'request\x20sent');_0x5c5bb4(_0x210a44[_0xfa70('0x11')][_0xfa70('0x10')]);}})[_0xfa70('0x12')](function(_0x3b4496){logger[_0xfa70('0xe')](_0xfa70('0xb'),_0xae7c5,_0x3b4496);_0x46fbac(_0x3b4496);});});}exports[_0xfa70('0x13')]=function(_0x1f6660){var _0x5baa43=this;return new Promise(function(_0x55e2ef,_0x1da480){return db['FaxApplication']['update'](_0x1f6660['body'],{'raw':_0x1f6660[_0xfa70('0x14')]?_0x1f6660[_0xfa70('0x14')]['raw']===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x1f6660[_0xfa70('0x14')]?_0x1f6660[_0xfa70('0x14')][_0xfa70('0x15')]||null:null,'attributes':_0x1f6660[_0xfa70('0x14')]?_0x1f6660[_0xfa70('0x14')][_0xfa70('0x16')]||null:null,'limit':_0x1f6660[_0xfa70('0x14')]?_0x1f6660[_0xfa70('0x14')][_0xfa70('0x17')]||null:null})['then'](function(_0x123c30){logger[_0xfa70('0xa')]('UpdateFaxApplication',_0x1f6660);logger[_0xfa70('0xc')](_0xfa70('0x13'),_0x1f6660,JSON['stringify'](_0x123c30));_0x55e2ef(_0x123c30);})[_0xfa70('0x12')](function(_0x4c836c){logger['error'](_0xfa70('0x13'),_0x4c836c[_0xfa70('0x10')],_0x1f6660);_0x1da480(_0x5baa43[_0xfa70('0xe')](0x1f4,_0x4c836c[_0xfa70('0x10')]));});});};
\ No newline at end of file