Built motion from commit 3c2ce842.|2.6.31
[motion2.git] / server / api / faxApplication / faxApplication.rpc.js
index 1c278a4..a0d026b 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x4583=['../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','request','then','info','request\x20sent','FaxApplication,\x20%s,\x20%s,\x20%s','stringify','error','code','FaxApplication,\x20%s,\x20%s','message','result','catch','FaxApplication','update','body','options','where','limit','debug','UpdateFaxApplication','util','moment','bluebird','randomstring','ioredis','../../mysqldb'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x4583,0x17a));var _0x3458=function(_0x301f36,_0x510564){_0x301f36=_0x301f36-0x0;var _0x269f6a=_0x4583[_0x301f36];return _0x269f6a;};'use strict';var _=require('lodash');var util=require(_0x3458('0x0'));var moment=require(_0x3458('0x1'));var BPromise=require(_0x3458('0x2'));var rs=require(_0x3458('0x3'));var fs=require('fs');var Redis=require(_0x3458('0x4'));var db=require(_0x3458('0x5'))['db'];var utils=require(_0x3458('0x6'));var logger=require(_0x3458('0x7'))(_0x3458('0x8'));var config=require(_0x3458('0x9'));var jayson=require(_0x3458('0xa'));var client=jayson[_0x3458('0xb')]['http']({'port':0x232a});function respondWithRpcPromise(_0x17e73d,_0x4b24dc,_0x3fc401){return new BPromise(function(_0x3001ce,_0x300eea){return client[_0x3458('0xc')](_0x17e73d,_0x3fc401)[_0x3458('0xd')](function(_0x3bbcef){logger[_0x3458('0xe')]('FaxApplication,\x20%s,\x20%s',_0x4b24dc,_0x3458('0xf'));logger['debug'](_0x3458('0x10'),_0x4b24dc,_0x3458('0xf'),JSON[_0x3458('0x11')](_0x3bbcef));if(_0x3bbcef['error']){if(_0x3bbcef[_0x3458('0x12')][_0x3458('0x13')]===0x1f4){logger[_0x3458('0x12')](_0x3458('0x14'),_0x4b24dc,_0x3bbcef[_0x3458('0x12')][_0x3458('0x15')]);return _0x300eea(_0x3bbcef[_0x3458('0x12')][_0x3458('0x15')]);}logger['error']('FaxApplication,\x20%s,\x20%s',_0x4b24dc,_0x3bbcef['error']['message']);return _0x3001ce(_0x3bbcef[_0x3458('0x12')]['message']);}else{logger[_0x3458('0xe')](_0x3458('0x14'),_0x4b24dc,_0x3458('0xf'));_0x3001ce(_0x3bbcef[_0x3458('0x16')][_0x3458('0x15')]);}})[_0x3458('0x17')](function(_0x5aede6){logger[_0x3458('0x12')](_0x3458('0x14'),_0x4b24dc,_0x5aede6);_0x300eea(_0x5aede6);});});}exports['UpdateFaxApplication']=function(_0x40fb8e){var _0x5cd2c8=this;return new Promise(function(_0x4dda61,_0x204626){return db[_0x3458('0x18')][_0x3458('0x19')](_0x40fb8e[_0x3458('0x1a')],{'raw':_0x40fb8e[_0x3458('0x1b')]?_0x40fb8e[_0x3458('0x1b')]['raw']===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x40fb8e['options']?_0x40fb8e[_0x3458('0x1b')][_0x3458('0x1c')]||null:null,'attributes':_0x40fb8e['options']?_0x40fb8e['options']['attributes']||null:null,'limit':_0x40fb8e['options']?_0x40fb8e['options'][_0x3458('0x1d')]||null:null})[_0x3458('0xd')](function(_0x19d40f){logger[_0x3458('0xe')]('UpdateFaxApplication',_0x40fb8e);logger[_0x3458('0x1e')](_0x3458('0x1f'),_0x40fb8e,JSON['stringify'](_0x19d40f));_0x4dda61(_0x19d40f);})[_0x3458('0x17')](function(_0x4f56e0){logger[_0x3458('0x12')](_0x3458('0x1f'),_0x4f56e0[_0x3458('0x15')],_0x40fb8e);_0x204626(_0x5cd2c8[_0x3458('0x12')](0x1f4,_0x4f56e0['message']));});});};
\ No newline at end of file
+var _0xc497=['bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/environment','client','http','request','info','FaxApplication,\x20%s,\x20%s','request\x20sent','stringify','error','code','message','result','catch','UpdateFaxApplication','FaxApplication','update','body','options','raw','where','attributes','limit','then','debug','lodash','moment'];(function(_0x2cfb91,_0x5896b8){var _0x31fd04=function(_0x5635c3){while(--_0x5635c3){_0x2cfb91['push'](_0x2cfb91['shift']());}};_0x31fd04(++_0x5896b8);}(_0xc497,0x7a));var _0x7c49=function(_0x149ed5,_0x441f00){_0x149ed5=_0x149ed5-0x0;var _0x3e1ad6=_0xc497[_0x149ed5];return _0x3e1ad6;};'use strict';var _=require(_0x7c49('0x0'));var util=require('util');var moment=require(_0x7c49('0x1'));var BPromise=require(_0x7c49('0x2'));var rs=require(_0x7c49('0x3'));var fs=require('fs');var Redis=require(_0x7c49('0x4'));var db=require(_0x7c49('0x5'))['db'];var utils=require(_0x7c49('0x6'));var logger=require('../../config/logger')('rpc');var config=require(_0x7c49('0x7'));var jayson=require('jayson/promise');var client=jayson[_0x7c49('0x8')][_0x7c49('0x9')]({'port':0x232a});function respondWithRpcPromise(_0x271356,_0x2248ed,_0x3993e1){return new BPromise(function(_0x1eb6f4,_0xefc756){return client[_0x7c49('0xa')](_0x271356,_0x3993e1)['then'](function(_0x3d8430){logger[_0x7c49('0xb')](_0x7c49('0xc'),_0x2248ed,_0x7c49('0xd'));logger['debug']('FaxApplication,\x20%s,\x20%s,\x20%s',_0x2248ed,_0x7c49('0xd'),JSON[_0x7c49('0xe')](_0x3d8430));if(_0x3d8430[_0x7c49('0xf')]){if(_0x3d8430[_0x7c49('0xf')][_0x7c49('0x10')]===0x1f4){logger[_0x7c49('0xf')](_0x7c49('0xc'),_0x2248ed,_0x3d8430[_0x7c49('0xf')][_0x7c49('0x11')]);return _0xefc756(_0x3d8430[_0x7c49('0xf')][_0x7c49('0x11')]);}logger[_0x7c49('0xf')](_0x7c49('0xc'),_0x2248ed,_0x3d8430[_0x7c49('0xf')][_0x7c49('0x11')]);return _0x1eb6f4(_0x3d8430[_0x7c49('0xf')][_0x7c49('0x11')]);}else{logger['info'](_0x7c49('0xc'),_0x2248ed,_0x7c49('0xd'));_0x1eb6f4(_0x3d8430[_0x7c49('0x12')]['message']);}})[_0x7c49('0x13')](function(_0x361570){logger[_0x7c49('0xf')](_0x7c49('0xc'),_0x2248ed,_0x361570);_0xefc756(_0x361570);});});}exports[_0x7c49('0x14')]=function(_0x2979d9){var _0x1c84bb=this;return new Promise(function(_0xf22598,_0x1e0c60){return db[_0x7c49('0x15')][_0x7c49('0x16')](_0x2979d9[_0x7c49('0x17')],{'raw':_0x2979d9[_0x7c49('0x18')]?_0x2979d9[_0x7c49('0x18')][_0x7c49('0x19')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x2979d9[_0x7c49('0x18')]?_0x2979d9[_0x7c49('0x18')][_0x7c49('0x1a')]||null:null,'attributes':_0x2979d9['options']?_0x2979d9[_0x7c49('0x18')][_0x7c49('0x1b')]||null:null,'limit':_0x2979d9[_0x7c49('0x18')]?_0x2979d9['options'][_0x7c49('0x1c')]||null:null})[_0x7c49('0x1d')](function(_0x561565){logger[_0x7c49('0xb')]('UpdateFaxApplication',_0x2979d9);logger[_0x7c49('0x1e')](_0x7c49('0x14'),_0x2979d9,JSON[_0x7c49('0xe')](_0x561565));_0xf22598(_0x561565);})[_0x7c49('0x13')](function(_0x3f1f7a){logger[_0x7c49('0xf')]('UpdateFaxApplication',_0x3f1f7a[_0x7c49('0x11')],_0x2979d9);_0x1e0c60(_0x1c84bb[_0x7c49('0xf')](0x1f4,_0x3f1f7a[_0x7c49('0x11')]));});});};
\ No newline at end of file