Built motion from commit (unavailable).|2.5.31
[motion2.git] / server / api / faxApplication / faxApplication.rpc.js
index 6877bb3..a3d6491 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x4507=['lodash','util','bluebird','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','client','http','request','then','request\x20sent','debug','FaxApplication,\x20%s,\x20%s,\x20%s','stringify','error','code','FaxApplication,\x20%s,\x20%s','message','info','result','catch','UpdateFaxApplication','FaxApplication','body','options','raw','limit'];(function(_0x565d69,_0x2acf29){var _0x1fbbc4=function(_0x43193c){while(--_0x43193c){_0x565d69['push'](_0x565d69['shift']());}};_0x1fbbc4(++_0x2acf29);}(_0x4507,0x96));var _0x7450=function(_0x4e676e,_0x2a7c6d){_0x4e676e=_0x4e676e-0x0;var _0x336a3c=_0x4507[_0x4e676e];return _0x336a3c;};'use strict';var _=require(_0x7450('0x0'));var util=require(_0x7450('0x1'));var moment=require('moment');var BPromise=require(_0x7450('0x2'));var rs=require('randomstring');var fs=require('fs');var Redis=require(_0x7450('0x3'));var db=require(_0x7450('0x4'))['db'];var utils=require(_0x7450('0x5'));var logger=require(_0x7450('0x6'))(_0x7450('0x7'));var config=require(_0x7450('0x8'));var jayson=require('jayson/promise');var client=jayson[_0x7450('0x9')][_0x7450('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x1ec3e2,_0x215751,_0x150a74){return new BPromise(function(_0x1ebdbe,_0x1cb10a){return client[_0x7450('0xb')](_0x1ec3e2,_0x150a74)[_0x7450('0xc')](function(_0x251e9d){logger['info']('FaxApplication,\x20%s,\x20%s',_0x215751,_0x7450('0xd'));logger[_0x7450('0xe')](_0x7450('0xf'),_0x215751,_0x7450('0xd'),JSON[_0x7450('0x10')](_0x251e9d));if(_0x251e9d[_0x7450('0x11')]){if(_0x251e9d[_0x7450('0x11')][_0x7450('0x12')]===0x1f4){logger[_0x7450('0x11')](_0x7450('0x13'),_0x215751,_0x251e9d[_0x7450('0x11')][_0x7450('0x14')]);return _0x1cb10a(_0x251e9d[_0x7450('0x11')][_0x7450('0x14')]);}logger['error'](_0x7450('0x13'),_0x215751,_0x251e9d[_0x7450('0x11')]['message']);return _0x1ebdbe(_0x251e9d['error'][_0x7450('0x14')]);}else{logger[_0x7450('0x15')]('FaxApplication,\x20%s,\x20%s',_0x215751,'request\x20sent');_0x1ebdbe(_0x251e9d[_0x7450('0x16')]['message']);}})[_0x7450('0x17')](function(_0x63847d){logger['error'](_0x7450('0x13'),_0x215751,_0x63847d);_0x1cb10a(_0x63847d);});});}exports[_0x7450('0x18')]=function(_0xdfcf32){var _0x32521e=this;return new Promise(function(_0x4546cc,_0x12a4b9){return db[_0x7450('0x19')]['update'](_0xdfcf32[_0x7450('0x1a')],{'raw':_0xdfcf32[_0x7450('0x1b')]?_0xdfcf32[_0x7450('0x1b')][_0x7450('0x1c')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0xdfcf32[_0x7450('0x1b')]?_0xdfcf32[_0x7450('0x1b')]['where']||null:null,'attributes':_0xdfcf32[_0x7450('0x1b')]?_0xdfcf32[_0x7450('0x1b')]['attributes']||null:null,'limit':_0xdfcf32[_0x7450('0x1b')]?_0xdfcf32[_0x7450('0x1b')][_0x7450('0x1d')]||null:null})[_0x7450('0xc')](function(_0x250f3a){logger[_0x7450('0x15')](_0x7450('0x18'),_0xdfcf32);logger['debug']('UpdateFaxApplication',_0xdfcf32,JSON[_0x7450('0x10')](_0x250f3a));_0x4546cc(_0x250f3a);})['catch'](function(_0x362459){logger['error'](_0x7450('0x18'),_0x362459[_0x7450('0x14')],_0xdfcf32);_0x12a4b9(_0x32521e[_0x7450('0x11')](0x1f4,_0x362459[_0x7450('0x14')]));});});};
\ No newline at end of file
+var _0xf3fa=['randomstring','ioredis','../../mysqldb','../../config/logger','rpc','../../config/environment','jayson/promise','client','request','then','info','FaxApplication,\x20%s,\x20%s','request\x20sent','debug','FaxApplication,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result','FaxApplication','update','options','raw','where','attributes','limit','UpdateFaxApplication','catch','lodash','moment','bluebird'];(function(_0x2ca2d0,_0x3ea8e4){var _0x521c23=function(_0x5b0731){while(--_0x5b0731){_0x2ca2d0['push'](_0x2ca2d0['shift']());}};_0x521c23(++_0x3ea8e4);}(_0xf3fa,0x13d));var _0xaf3f=function(_0x352d28,_0x444033){_0x352d28=_0x352d28-0x0;var _0x387d7e=_0xf3fa[_0x352d28];return _0x387d7e;};'use strict';var _=require(_0xaf3f('0x0'));var util=require('util');var moment=require(_0xaf3f('0x1'));var BPromise=require(_0xaf3f('0x2'));var rs=require(_0xaf3f('0x3'));var fs=require('fs');var Redis=require(_0xaf3f('0x4'));var db=require(_0xaf3f('0x5'))['db'];var utils=require('../../config/utils');var logger=require(_0xaf3f('0x6'))(_0xaf3f('0x7'));var config=require(_0xaf3f('0x8'));var jayson=require(_0xaf3f('0x9'));var client=jayson[_0xaf3f('0xa')]['http']({'port':0x232a});function respondWithRpcPromise(_0x140ab6,_0x14fa77,_0x43b848){return new BPromise(function(_0x26ce91,_0x5c20c8){return client[_0xaf3f('0xb')](_0x140ab6,_0x43b848)[_0xaf3f('0xc')](function(_0x50a9f6){logger[_0xaf3f('0xd')](_0xaf3f('0xe'),_0x14fa77,_0xaf3f('0xf'));logger[_0xaf3f('0x10')](_0xaf3f('0x11'),_0x14fa77,'request\x20sent',JSON[_0xaf3f('0x12')](_0x50a9f6));if(_0x50a9f6[_0xaf3f('0x13')]){if(_0x50a9f6[_0xaf3f('0x13')][_0xaf3f('0x14')]===0x1f4){logger[_0xaf3f('0x13')]('FaxApplication,\x20%s,\x20%s',_0x14fa77,_0x50a9f6[_0xaf3f('0x13')][_0xaf3f('0x15')]);return _0x5c20c8(_0x50a9f6[_0xaf3f('0x13')]['message']);}logger[_0xaf3f('0x13')](_0xaf3f('0xe'),_0x14fa77,_0x50a9f6[_0xaf3f('0x13')]['message']);return _0x26ce91(_0x50a9f6['error'][_0xaf3f('0x15')]);}else{logger[_0xaf3f('0xd')](_0xaf3f('0xe'),_0x14fa77,_0xaf3f('0xf'));_0x26ce91(_0x50a9f6[_0xaf3f('0x16')][_0xaf3f('0x15')]);}})['catch'](function(_0x492983){logger['error'](_0xaf3f('0xe'),_0x14fa77,_0x492983);_0x5c20c8(_0x492983);});});}exports['UpdateFaxApplication']=function(_0x154bc1){var _0x135eda=this;return new Promise(function(_0x462213,_0x544230){return db[_0xaf3f('0x17')][_0xaf3f('0x18')](_0x154bc1['body'],{'raw':_0x154bc1[_0xaf3f('0x19')]?_0x154bc1['options'][_0xaf3f('0x1a')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x154bc1[_0xaf3f('0x19')]?_0x154bc1[_0xaf3f('0x19')][_0xaf3f('0x1b')]||null:null,'attributes':_0x154bc1[_0xaf3f('0x19')]?_0x154bc1['options'][_0xaf3f('0x1c')]||null:null,'limit':_0x154bc1[_0xaf3f('0x19')]?_0x154bc1['options'][_0xaf3f('0x1d')]||null:null})[_0xaf3f('0xc')](function(_0x1db804){logger['info']('UpdateFaxApplication',_0x154bc1);logger[_0xaf3f('0x10')](_0xaf3f('0x1e'),_0x154bc1,JSON[_0xaf3f('0x12')](_0x1db804));_0x462213(_0x1db804);})[_0xaf3f('0x1f')](function(_0x2a8a57){logger[_0xaf3f('0x13')]('UpdateFaxApplication',_0x2a8a57['message'],_0x154bc1);_0x544230(_0x135eda[_0xaf3f('0x13')](0x1f4,_0x2a8a57[_0xaf3f('0x15')]));});});};
\ No newline at end of file