Built motion from commit (unavailable).|2.5.21
[motion2.git] / server / api / faxApplication / faxApplication.rpc.js
index 3ab95f3..c25c87e 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xa9a0=['FaxApplication,\x20%s,\x20%s','request\x20sent','debug','FaxApplication,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result','catch','update','body','options','raw','where','attributes','limit','UpdateFaxApplication','lodash','util','moment','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','../../config/environment','client','http','request','then','info'];(function(_0x47db5d,_0x3389be){var _0x15823c=function(_0x2b461e){while(--_0x2b461e){_0x47db5d['push'](_0x47db5d['shift']());}};_0x15823c(++_0x3389be);}(_0xa9a0,0x1b2));var _0x0a9a=function(_0x4de5b1,_0xf82eb1){_0x4de5b1=_0x4de5b1-0x0;var _0xf711fa=_0xa9a0[_0x4de5b1];return _0xf711fa;};'use strict';var _=require(_0x0a9a('0x0'));var util=require(_0x0a9a('0x1'));var moment=require(_0x0a9a('0x2'));var BPromise=require('bluebird');var rs=require(_0x0a9a('0x3'));var fs=require('fs');var Redis=require(_0x0a9a('0x4'));var db=require(_0x0a9a('0x5'))['db'];var utils=require(_0x0a9a('0x6'));var logger=require(_0x0a9a('0x7'))('rpc');var config=require(_0x0a9a('0x8'));var jayson=require('jayson/promise');var client=jayson[_0x0a9a('0x9')][_0x0a9a('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x1292aa,_0x40bd57,_0x8eaa61){return new BPromise(function(_0x555f9a,_0x58526e){return client[_0x0a9a('0xb')](_0x1292aa,_0x8eaa61)[_0x0a9a('0xc')](function(_0x4b6ff1){logger[_0x0a9a('0xd')](_0x0a9a('0xe'),_0x40bd57,_0x0a9a('0xf'));logger[_0x0a9a('0x10')](_0x0a9a('0x11'),_0x40bd57,_0x0a9a('0xf'),JSON[_0x0a9a('0x12')](_0x4b6ff1));if(_0x4b6ff1[_0x0a9a('0x13')]){if(_0x4b6ff1['error'][_0x0a9a('0x14')]===0x1f4){logger[_0x0a9a('0x13')]('FaxApplication,\x20%s,\x20%s',_0x40bd57,_0x4b6ff1[_0x0a9a('0x13')][_0x0a9a('0x15')]);return _0x58526e(_0x4b6ff1[_0x0a9a('0x13')][_0x0a9a('0x15')]);}logger[_0x0a9a('0x13')](_0x0a9a('0xe'),_0x40bd57,_0x4b6ff1['error'][_0x0a9a('0x15')]);return _0x555f9a(_0x4b6ff1['error'][_0x0a9a('0x15')]);}else{logger[_0x0a9a('0xd')](_0x0a9a('0xe'),_0x40bd57,_0x0a9a('0xf'));_0x555f9a(_0x4b6ff1[_0x0a9a('0x16')][_0x0a9a('0x15')]);}})[_0x0a9a('0x17')](function(_0x44a062){logger[_0x0a9a('0x13')](_0x0a9a('0xe'),_0x40bd57,_0x44a062);_0x58526e(_0x44a062);});});}exports['UpdateFaxApplication']=function(_0x1fa66a){var _0x2a9fb2=this;return new Promise(function(_0x322319,_0x2dade4){return db['FaxApplication'][_0x0a9a('0x18')](_0x1fa66a[_0x0a9a('0x19')],{'raw':_0x1fa66a[_0x0a9a('0x1a')]?_0x1fa66a['options'][_0x0a9a('0x1b')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x1fa66a[_0x0a9a('0x1a')]?_0x1fa66a[_0x0a9a('0x1a')][_0x0a9a('0x1c')]||null:null,'attributes':_0x1fa66a['options']?_0x1fa66a[_0x0a9a('0x1a')][_0x0a9a('0x1d')]||null:null,'limit':_0x1fa66a[_0x0a9a('0x1a')]?_0x1fa66a[_0x0a9a('0x1a')][_0x0a9a('0x1e')]||null:null})['then'](function(_0x31c7be){logger[_0x0a9a('0xd')]('UpdateFaxApplication',_0x1fa66a);logger['debug'](_0x0a9a('0x1f'),_0x1fa66a,JSON['stringify'](_0x31c7be));_0x322319(_0x31c7be);})[_0x0a9a('0x17')](function(_0x5e1e1a){logger[_0x0a9a('0x13')](_0x0a9a('0x1f'),_0x5e1e1a[_0x0a9a('0x15')],_0x1fa66a);_0x2dade4(_0x2a9fb2[_0x0a9a('0x13')](0x1f4,_0x5e1e1a[_0x0a9a('0x15')]));});});};
\ No newline at end of file
+var _0x25a7=['bluebird','randomstring','ioredis','../../mysqldb','../../config/logger','rpc','../../config/environment','jayson/promise','client','request','then','info','FaxApplication,\x20%s,\x20%s','request\x20sent','FaxApplication,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result','UpdateFaxApplication','FaxApplication','update','body','options','raw','where','limit','debug','catch','lodash','util'];(function(_0x369cfa,_0x46f147){var _0x10e2f7=function(_0x4ea417){while(--_0x4ea417){_0x369cfa['push'](_0x369cfa['shift']());}};_0x10e2f7(++_0x46f147);}(_0x25a7,0xfe));var _0x725a=function(_0x5934b6,_0x3147bc){_0x5934b6=_0x5934b6-0x0;var _0x4ffbb5=_0x25a7[_0x5934b6];return _0x4ffbb5;};'use strict';var _=require(_0x725a('0x0'));var util=require(_0x725a('0x1'));var moment=require('moment');var BPromise=require(_0x725a('0x2'));var rs=require(_0x725a('0x3'));var fs=require('fs');var Redis=require(_0x725a('0x4'));var db=require(_0x725a('0x5'))['db'];var utils=require('../../config/utils');var logger=require(_0x725a('0x6'))(_0x725a('0x7'));var config=require(_0x725a('0x8'));var jayson=require(_0x725a('0x9'));var client=jayson[_0x725a('0xa')]['http']({'port':0x232a});function respondWithRpcPromise(_0x50f408,_0x3787ce,_0x34c0ed){return new BPromise(function(_0x3e3315,_0x1c40ef){return client[_0x725a('0xb')](_0x50f408,_0x34c0ed)[_0x725a('0xc')](function(_0x46c20c){logger[_0x725a('0xd')](_0x725a('0xe'),_0x3787ce,_0x725a('0xf'));logger['debug'](_0x725a('0x10'),_0x3787ce,'request\x20sent',JSON[_0x725a('0x11')](_0x46c20c));if(_0x46c20c[_0x725a('0x12')]){if(_0x46c20c[_0x725a('0x12')][_0x725a('0x13')]===0x1f4){logger[_0x725a('0x12')]('FaxApplication,\x20%s,\x20%s',_0x3787ce,_0x46c20c[_0x725a('0x12')][_0x725a('0x14')]);return _0x1c40ef(_0x46c20c[_0x725a('0x12')][_0x725a('0x14')]);}logger['error'](_0x725a('0xe'),_0x3787ce,_0x46c20c[_0x725a('0x12')]['message']);return _0x3e3315(_0x46c20c[_0x725a('0x12')]['message']);}else{logger[_0x725a('0xd')](_0x725a('0xe'),_0x3787ce,'request\x20sent');_0x3e3315(_0x46c20c[_0x725a('0x15')][_0x725a('0x14')]);}})['catch'](function(_0x47c22d){logger[_0x725a('0x12')](_0x725a('0xe'),_0x3787ce,_0x47c22d);_0x1c40ef(_0x47c22d);});});}exports[_0x725a('0x16')]=function(_0x46e8d7){var _0x5dbc8c=this;return new Promise(function(_0x1c7f38,_0x3b6a9f){return db[_0x725a('0x17')][_0x725a('0x18')](_0x46e8d7[_0x725a('0x19')],{'raw':_0x46e8d7[_0x725a('0x1a')]?_0x46e8d7[_0x725a('0x1a')][_0x725a('0x1b')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x46e8d7['options']?_0x46e8d7[_0x725a('0x1a')][_0x725a('0x1c')]||null:null,'attributes':_0x46e8d7['options']?_0x46e8d7['options']['attributes']||null:null,'limit':_0x46e8d7[_0x725a('0x1a')]?_0x46e8d7['options'][_0x725a('0x1d')]||null:null})[_0x725a('0xc')](function(_0x1e0f7e){logger[_0x725a('0xd')]('UpdateFaxApplication',_0x46e8d7);logger[_0x725a('0x1e')](_0x725a('0x16'),_0x46e8d7,JSON['stringify'](_0x1e0f7e));_0x1c7f38(_0x1e0f7e);})[_0x725a('0x1f')](function(_0x47d3dc){logger[_0x725a('0x12')](_0x725a('0x16'),_0x47d3dc[_0x725a('0x14')],_0x46e8d7);_0x3b6a9f(_0x5dbc8c[_0x725a('0x12')](0x1f4,_0x47d3dc[_0x725a('0x14')]));});});};
\ No newline at end of file