Built motion from commit (unavailable).|2.5.1
[motion2.git] / server / services / agi / rpc / index.js
index b81e12b..50b9f63 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x9ab9=['CreateSquareDetailsReport','createSquareReport','CreateSquareReport','merge','arg_2','format','CreateSquareRecording','createSquareMessage','CreateSquareMessage','createCmContact','ShowCmHopper','phone','ListId','CreateCmContact','ShowPause','agentLogin','PauseUser','agentUnpause','UnpauseUser','agentLogout','LogoutUser','bluebird','moment','lodash','util','jayson/promise','http','request','then','error','catch','ShowSquareProject','production','getMailAccountById','ShowMailAccount','Smtp','name','email','getVoiceQueueById','ShowVoiceQueue','ShowVariable','getSquareOdbcById','ShowSquareOdbc','getUserById','ShowUser','getTrunkById','ShowTrunk','ShowSound','save_name','getIntervalById','ShowInterval','Interval','Intervals','getSmsAccountById','createSmsMessage','createSquareDetailsReport'];(function(_0x5ad771,_0x34186f){var _0x5b5dce=function(_0x5ad0fb){while(--_0x5ad0fb){_0x5ad771['push'](_0x5ad771['shift']());}};_0x5b5dce(++_0x34186f);}(_0x9ab9,0x19d));var _0x99ab=function(_0x54d47a,_0x435095){_0x54d47a=_0x54d47a-0x0;var _0x515c4f=_0x9ab9[_0x54d47a];return _0x515c4f;};'use strict';var BPromise=require(_0x99ab('0x0'));var moment=require(_0x99ab('0x1'));var _=require(_0x99ab('0x2'));var util=require(_0x99ab('0x3'));var jayson=require(_0x99ab('0x4'));var client=jayson['client'][_0x99ab('0x5')]({'port':0x2329});function request(_0x3a8ea9,_0x5f28e4){return new BPromise(function(_0x1b1c96,_0x49761a){return client[_0x99ab('0x6')](_0x3a8ea9,_0x5f28e4)[_0x99ab('0x7')](function(_0x390d41){if(_0x390d41[_0x99ab('0x8')]){return _0x49761a(_0x390d41[_0x99ab('0x8')]['message']);}else{return _0x1b1c96(_0x390d41['result']);}})[_0x99ab('0x9')](function(_0x18ca95){return _0x49761a(_0x18ca95);});});}exports['getSquareProject']=function(_0x14d083){return request(_0x99ab('0xa'),{'options':{'raw':![],'where':{'name':_0x14d083},'attributes':[_0x99ab('0xb')]}});};exports[_0x99ab('0xc')]=function(_0xe82b20){return request(_0x99ab('0xd'),{'options':{'raw':![],'where':{'id':_0xe82b20},'include':[{'model':'MailServerOut','as':_0x99ab('0xe')}],'attributes':['id',_0x99ab('0xf'),_0x99ab('0x10')]}});};exports['getSquareProjectById']=function(_0x4e7b4a){return request(_0x99ab('0xa'),{'options':{'where':{'id':_0x4e7b4a},'attributes':[_0x99ab('0xf')]}});};exports[_0x99ab('0x11')]=function(_0x3b3bba){return request(_0x99ab('0x12'),{'options':{'where':{'id':_0x3b3bba},'attributes':[_0x99ab('0xf')]}});};exports['getVariableById']=function(_0x97639f){return request(_0x99ab('0x13'),{'options':{'where':{'id':_0x97639f},'attributes':['name']}});};exports[_0x99ab('0x14')]=function(_0x36d89e){return request(_0x99ab('0x15'),{'options':{'where':{'id':_0x36d89e},'attributes':['dsn']}});};exports[_0x99ab('0x16')]=function(_0x13b9aa){return request(_0x99ab('0x17'),{'options':{'where':{'id':_0x13b9aa},'attributes':[_0x99ab('0xf')]}});};exports[_0x99ab('0x18')]=function(_0x2a5e0e){return request(_0x99ab('0x19'),{'options':{'where':{'id':_0x2a5e0e},'attributes':[_0x99ab('0xf')]}});};exports['getSoundById']=function(_0x14a515){return request(_0x99ab('0x1a'),{'options':{'where':{'id':_0x14a515},'attributes':[_0x99ab('0x1b')]}});};exports[_0x99ab('0x1c')]=function(_0x34e694){return request(_0x99ab('0x1d'),{'options':{'raw':![],'where':{'id':_0x34e694},'include':[{'model':_0x99ab('0x1e'),'as':_0x99ab('0x1f')}]}});};exports[_0x99ab('0x20')]=function(_0x51ded6){return request('ShowSmsAccount',{'options':{'where':{'id':_0x51ded6},'attributes':['id',_0x99ab('0xf')]}});};exports[_0x99ab('0x21')]=function(_0x194f39){return request('CreateSmsMessage',{'body':_0x194f39});};exports[_0x99ab('0x22')]=function(_0x3a0897){return request(_0x99ab('0x23'),{'body':_0x3a0897});};exports[_0x99ab('0x24')]=function(_0x624e9b){return request(_0x99ab('0x25'),{'body':_[_0x99ab('0x26')](_0x624e9b,{'project_name':_0x624e9b['arg_1'],'prev_project_name':_0x624e9b[_0x99ab('0x27')]||'','is_subproject':_0x624e9b['arg_2']?!![]:![],'leaveAt':moment()[_0x99ab('0x28')]('YYYY-MM-DD\x20HH:mm:ss')})});};exports['createSquareRecording']=function(_0x2d3281){return request(_0x99ab('0x29'),{'body':_0x2d3281});};exports[_0x99ab('0x2a')]=function(_0x570bed){return request(_0x99ab('0x2b'),{'body':_0x570bed});};exports[_0x99ab('0x2c')]=function(_0x447ef0){return request(_0x99ab('0x2d'),{'options':{'raw':![],'where':{'phone':_0x447ef0[_0x99ab('0x2e')],'ListId':_0x447ef0[_0x99ab('0x2f')]}}})[_0x99ab('0x7')](function(_0x2efec3){if(_0x2efec3){return _0x2efec3;}return request(_0x99ab('0x30'),{'body':_0x447ef0});});};exports['getPauseById']=function(_0x37182e){return request(_0x99ab('0x31'),{'options':{'where':{'id':_0x37182e},'attributes':['name']}});};exports[_0x99ab('0x32')]=function(_0x2c7333,_0x12c3e9){return request('LoginUser',{'body':{'interface':_0x12c3e9},'options':{'where':_0x2c7333}});};exports['agentPause']=function(_0x415276,_0x2cadac,_0x1aeca3){return request(_0x99ab('0x33'),{'body':{'type':_0x2cadac,'uniqueid':_0x1aeca3},'options':{'where':_0x415276}});};exports[_0x99ab('0x34')]=function(_0x36c0f1){return request(_0x99ab('0x35'),{'body':{},'options':{'where':_0x36c0f1}});};exports[_0x99ab('0x36')]=function(_0x5ba1ea){return request(_0x99ab('0x37'),{'body':{},'options':{'where':_0x5ba1ea}});};
\ No newline at end of file
+var _0xbf80=['phone','CreateCmContact','getPauseById','agentLogin','agentPause','PauseUser','agentUnpause','UnpauseUser','agentLogout','LogoutUser','bluebird','moment','lodash','jayson/promise','client','request','then','error','result','catch','getSquareProject','ShowSquareProject','production','ShowMailAccount','MailServerOut','email','getSquareProjectById','getVoiceQueueById','ShowVoiceQueue','name','getVariableById','ShowVariable','getSquareOdbcById','ShowSquareOdbc','dsn','getUserById','ShowTrunk','getSoundById','ShowSound','save_name','getIntervalById','ShowInterval','Interval','Intervals','ShowSmsAccount','CreateSmsMessage','createSquareReport','merge','arg_1','arg_2','YYYY-MM-DD\x20HH:mm:ss','createSquareRecording','CreateSquareRecording','CreateSquareMessage','createCmContact','ShowCmHopper'];(function(_0x4c7fb5,_0x2548ef){var _0x2e10ac=function(_0xf7e27c){while(--_0xf7e27c){_0x4c7fb5['push'](_0x4c7fb5['shift']());}};_0x2e10ac(++_0x2548ef);}(_0xbf80,0x15a));var _0x0bf8=function(_0x5a79e2,_0x319b1a){_0x5a79e2=_0x5a79e2-0x0;var _0x266c45=_0xbf80[_0x5a79e2];return _0x266c45;};'use strict';var BPromise=require(_0x0bf8('0x0'));var moment=require(_0x0bf8('0x1'));var _=require(_0x0bf8('0x2'));var util=require('util');var jayson=require(_0x0bf8('0x3'));var client=jayson[_0x0bf8('0x4')]['http']({'port':0x2329});function request(_0x44ab94,_0x2dcc24){return new BPromise(function(_0x3e4144,_0xa40c6c){return client[_0x0bf8('0x5')](_0x44ab94,_0x2dcc24)[_0x0bf8('0x6')](function(_0x487c52){if(_0x487c52[_0x0bf8('0x7')]){return _0xa40c6c(_0x487c52['error']['message']);}else{return _0x3e4144(_0x487c52[_0x0bf8('0x8')]);}})[_0x0bf8('0x9')](function(_0x18cebd){return _0xa40c6c(_0x18cebd);});});}exports[_0x0bf8('0xa')]=function(_0x45c08c){return request(_0x0bf8('0xb'),{'options':{'raw':![],'where':{'name':_0x45c08c},'attributes':[_0x0bf8('0xc')]}});};exports['getMailAccountById']=function(_0x439d83){return request(_0x0bf8('0xd'),{'options':{'raw':![],'where':{'id':_0x439d83},'include':[{'model':_0x0bf8('0xe'),'as':'Smtp'}],'attributes':['id','name',_0x0bf8('0xf')]}});};exports[_0x0bf8('0x10')]=function(_0x5b8da3){return request('ShowSquareProject',{'options':{'where':{'id':_0x5b8da3},'attributes':['name']}});};exports[_0x0bf8('0x11')]=function(_0x2c2b31){return request(_0x0bf8('0x12'),{'options':{'where':{'id':_0x2c2b31},'attributes':[_0x0bf8('0x13')]}});};exports[_0x0bf8('0x14')]=function(_0x15d15c){return request(_0x0bf8('0x15'),{'options':{'where':{'id':_0x15d15c},'attributes':[_0x0bf8('0x13')]}});};exports[_0x0bf8('0x16')]=function(_0x380808){return request(_0x0bf8('0x17'),{'options':{'where':{'id':_0x380808},'attributes':[_0x0bf8('0x18')]}});};exports[_0x0bf8('0x19')]=function(_0x11facb){return request('ShowUser',{'options':{'where':{'id':_0x11facb},'attributes':[_0x0bf8('0x13')]}});};exports['getTrunkById']=function(_0x2acb44){return request(_0x0bf8('0x1a'),{'options':{'where':{'id':_0x2acb44},'attributes':['name']}});};exports[_0x0bf8('0x1b')]=function(_0x4a4543){return request(_0x0bf8('0x1c'),{'options':{'where':{'id':_0x4a4543},'attributes':[_0x0bf8('0x1d')]}});};exports[_0x0bf8('0x1e')]=function(_0x5a5efd){return request(_0x0bf8('0x1f'),{'options':{'raw':![],'where':{'id':_0x5a5efd},'include':[{'model':_0x0bf8('0x20'),'as':_0x0bf8('0x21')}]}});};exports['getSmsAccountById']=function(_0xf8d440){return request(_0x0bf8('0x22'),{'options':{'where':{'id':_0xf8d440},'attributes':['id',_0x0bf8('0x13')]}});};exports['createSmsMessage']=function(_0x4c43e8){return request(_0x0bf8('0x23'),{'body':_0x4c43e8});};exports['createSquareDetailsReport']=function(_0x4478e2){return request('CreateSquareDetailsReport',{'body':_0x4478e2});};exports[_0x0bf8('0x24')]=function(_0x45fc2a){return request('CreateSquareReport',{'body':_[_0x0bf8('0x25')](_0x45fc2a,{'project_name':_0x45fc2a[_0x0bf8('0x26')],'prev_project_name':_0x45fc2a[_0x0bf8('0x27')]||'','is_subproject':_0x45fc2a['arg_2']?!![]:![],'leaveAt':moment()['format'](_0x0bf8('0x28'))})});};exports[_0x0bf8('0x29')]=function(_0x468a5d){return request(_0x0bf8('0x2a'),{'body':_0x468a5d});};exports['createSquareMessage']=function(_0x2e502f){return request(_0x0bf8('0x2b'),{'body':_0x2e502f});};exports[_0x0bf8('0x2c')]=function(_0x214297){return request(_0x0bf8('0x2d'),{'options':{'raw':![],'where':{'phone':_0x214297[_0x0bf8('0x2e')],'ListId':_0x214297['ListId']}}})[_0x0bf8('0x6')](function(_0xef9008){if(_0xef9008){return _0xef9008;}return request(_0x0bf8('0x2f'),{'body':_0x214297});});};exports[_0x0bf8('0x30')]=function(_0x4c66e0){return request('ShowPause',{'options':{'where':{'id':_0x4c66e0},'attributes':['name']}});};exports[_0x0bf8('0x31')]=function(_0x1b84c6,_0x6ef863){return request('LoginUser',{'body':{'interface':_0x6ef863},'options':{'where':_0x1b84c6}});};exports[_0x0bf8('0x32')]=function(_0x13555d,_0x396690,_0x17a260){return request(_0x0bf8('0x33'),{'body':{'type':_0x396690,'uniqueid':_0x17a260},'options':{'where':_0x13555d}});};exports[_0x0bf8('0x34')]=function(_0x2aa650){return request(_0x0bf8('0x35'),{'body':{},'options':{'where':_0x2aa650}});};exports[_0x0bf8('0x36')]=function(_0x3cb88f){return request(_0x0bf8('0x37'),{'body':{},'options':{'where':_0x3cb88f}});};
\ No newline at end of file