Built motion from commit 97153652.|2.6.26
[motion2.git] / server / api / faxApplication / faxApplication.rpc.js
index 1c278a4..83d4d89 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 _0xf03e=['then','info','FaxApplication,\x20%s,\x20%s','debug','FaxApplication,\x20%s,\x20%s,\x20%s','request\x20sent','stringify','error','message','result','catch','UpdateFaxApplication','update','options','where','attributes','lodash','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','rpc','jayson/promise','client','request'];(function(_0x34b89a,_0x4e8e3a){var _0x4c1721=function(_0x1cced0){while(--_0x1cced0){_0x34b89a['push'](_0x34b89a['shift']());}};_0x4c1721(++_0x4e8e3a);}(_0xf03e,0x114));var _0xef03=function(_0x337866,_0x490b96){_0x337866=_0x337866-0x0;var _0x841789=_0xf03e[_0x337866];return _0x841789;};'use strict';var _=require(_0xef03('0x0'));var util=require('util');var moment=require('moment');var BPromise=require(_0xef03('0x1'));var rs=require(_0xef03('0x2'));var fs=require('fs');var Redis=require(_0xef03('0x3'));var db=require(_0xef03('0x4'))['db'];var utils=require(_0xef03('0x5'));var logger=require('../../config/logger')(_0xef03('0x6'));var config=require('../../config/environment');var jayson=require(_0xef03('0x7'));var client=jayson[_0xef03('0x8')]['http']({'port':0x232a});function respondWithRpcPromise(_0x46b4ca,_0x3c8d45,_0xaa144d){return new BPromise(function(_0x998644,_0x40a9ba){return client[_0xef03('0x9')](_0x46b4ca,_0xaa144d)[_0xef03('0xa')](function(_0x16065a){logger[_0xef03('0xb')](_0xef03('0xc'),_0x3c8d45,'request\x20sent');logger[_0xef03('0xd')](_0xef03('0xe'),_0x3c8d45,_0xef03('0xf'),JSON[_0xef03('0x10')](_0x16065a));if(_0x16065a[_0xef03('0x11')]){if(_0x16065a['error']['code']===0x1f4){logger[_0xef03('0x11')](_0xef03('0xc'),_0x3c8d45,_0x16065a[_0xef03('0x11')][_0xef03('0x12')]);return _0x40a9ba(_0x16065a['error'][_0xef03('0x12')]);}logger[_0xef03('0x11')](_0xef03('0xc'),_0x3c8d45,_0x16065a[_0xef03('0x11')][_0xef03('0x12')]);return _0x998644(_0x16065a[_0xef03('0x11')][_0xef03('0x12')]);}else{logger[_0xef03('0xb')](_0xef03('0xc'),_0x3c8d45,_0xef03('0xf'));_0x998644(_0x16065a[_0xef03('0x13')][_0xef03('0x12')]);}})[_0xef03('0x14')](function(_0xa9bb92){logger[_0xef03('0x11')](_0xef03('0xc'),_0x3c8d45,_0xa9bb92);_0x40a9ba(_0xa9bb92);});});}exports[_0xef03('0x15')]=function(_0x46996e){var _0x1fdb03=this;return new Promise(function(_0x1d7c21,_0x233b7c){return db['FaxApplication'][_0xef03('0x16')](_0x46996e['body'],{'raw':_0x46996e['options']?_0x46996e[_0xef03('0x17')]['raw']===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x46996e[_0xef03('0x17')]?_0x46996e[_0xef03('0x17')][_0xef03('0x18')]||null:null,'attributes':_0x46996e[_0xef03('0x17')]?_0x46996e[_0xef03('0x17')][_0xef03('0x19')]||null:null,'limit':_0x46996e['options']?_0x46996e[_0xef03('0x17')]['limit']||null:null})[_0xef03('0xa')](function(_0x75ff40){logger[_0xef03('0xb')](_0xef03('0x15'),_0x46996e);logger['debug']('UpdateFaxApplication',_0x46996e,JSON['stringify'](_0x75ff40));_0x1d7c21(_0x75ff40);})['catch'](function(_0x1726b3){logger[_0xef03('0x11')](_0xef03('0x15'),_0x1726b3['message'],_0x46996e);_0x233b7c(_0x1fdb03[_0xef03('0x11')](0x1f4,_0x1726b3[_0xef03('0x12')]));});});};
\ No newline at end of file