Built motion from commit (unavailable).|2.6.0
[motion2.git] / server / services / agi / rpc / index.js
index b8cafb6..eb96787 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xc9d7=['ShowInterval','Interval','Intervals','getSmsAccountById','createSmsMessage','createSquareDetailsReport','CreateSquareDetailsReport','createSquareReport','CreateSquareReport','merge','arg_1','arg_2','format','YYYY-MM-DD\x20HH:mm:ss','createSquareMessage','CreateSquareMessage','createCmContact','phone','ListId','getPauseById','ShowPause','agentLogin','LoginUser','agentPause','PauseUser','agentUnpause','UnpauseUser','agentLogout','LogoutUser','bluebird','moment','lodash','util','jayson/promise','client','request','then','error','message','result','catch','ShowSquareProject','production','getMailAccountById','ShowMailAccount','MailServerOut','email','name','getVoiceQueueById','ShowVoiceQueue','getVariableById','ShowVariable','getSquareOdbcById','dsn','ShowUser','getTrunkById','ShowTrunk','getSoundById','ShowSound','getIntervalById'];(function(_0x2a85e6,_0x19dca3){var _0x4e6d1a=function(_0x7c4d3e){while(--_0x7c4d3e){_0x2a85e6['push'](_0x2a85e6['shift']());}};_0x4e6d1a(++_0x19dca3);}(_0xc9d7,0x149));var _0x7c9d=function(_0x1b6186,_0x1ec7f2){_0x1b6186=_0x1b6186-0x0;var _0x186121=_0xc9d7[_0x1b6186];return _0x186121;};'use strict';var BPromise=require(_0x7c9d('0x0'));var moment=require(_0x7c9d('0x1'));var _=require(_0x7c9d('0x2'));var util=require(_0x7c9d('0x3'));var jayson=require(_0x7c9d('0x4'));var client=jayson[_0x7c9d('0x5')]['http']({'port':0x2329});function request(_0x1ac7b2,_0x36a6fd){return new BPromise(function(_0x1eacf2,_0x232db4){return client[_0x7c9d('0x6')](_0x1ac7b2,_0x36a6fd)[_0x7c9d('0x7')](function(_0x18b838){if(_0x18b838[_0x7c9d('0x8')]){return _0x232db4(_0x18b838['error'][_0x7c9d('0x9')]);}else{return _0x1eacf2(_0x18b838[_0x7c9d('0xa')]);}})[_0x7c9d('0xb')](function(_0x57f95c){return _0x232db4(_0x57f95c);});});}exports['getSquareProject']=function(_0x3d657d){return request(_0x7c9d('0xc'),{'options':{'raw':![],'where':{'name':_0x3d657d},'attributes':[_0x7c9d('0xd')]}});};exports[_0x7c9d('0xe')]=function(_0x280e47){return request(_0x7c9d('0xf'),{'options':{'raw':![],'where':{'id':_0x280e47},'include':[{'model':_0x7c9d('0x10'),'as':'Smtp'}],'attributes':['id','name',_0x7c9d('0x11')]}});};exports['getSquareProjectById']=function(_0x20bd7b){return request(_0x7c9d('0xc'),{'options':{'where':{'id':_0x20bd7b},'attributes':[_0x7c9d('0x12')]}});};exports[_0x7c9d('0x13')]=function(_0x29bd90){return request(_0x7c9d('0x14'),{'options':{'where':{'id':_0x29bd90},'attributes':[_0x7c9d('0x12')]}});};exports[_0x7c9d('0x15')]=function(_0x1650a0){return request(_0x7c9d('0x16'),{'options':{'where':{'id':_0x1650a0},'attributes':['name']}});};exports[_0x7c9d('0x17')]=function(_0x3a9d4f){return request('ShowSquareOdbc',{'options':{'where':{'id':_0x3a9d4f},'attributes':[_0x7c9d('0x18')]}});};exports['getUserById']=function(_0x5adf17){return request(_0x7c9d('0x19'),{'options':{'where':{'id':_0x5adf17},'attributes':[_0x7c9d('0x12')]}});};exports[_0x7c9d('0x1a')]=function(_0x27b810){return request(_0x7c9d('0x1b'),{'options':{'where':{'id':_0x27b810},'attributes':[_0x7c9d('0x12')]}});};exports[_0x7c9d('0x1c')]=function(_0x5eedeb){return request(_0x7c9d('0x1d'),{'options':{'where':{'id':_0x5eedeb},'attributes':['save_name']}});};exports[_0x7c9d('0x1e')]=function(_0x3aecc4){return request(_0x7c9d('0x1f'),{'options':{'raw':![],'where':{'id':_0x3aecc4},'include':[{'model':_0x7c9d('0x20'),'as':_0x7c9d('0x21')}]}});};exports[_0x7c9d('0x22')]=function(_0x5033e9){return request('ShowSmsAccount',{'options':{'where':{'id':_0x5033e9},'attributes':['id',_0x7c9d('0x12')]}});};exports[_0x7c9d('0x23')]=function(_0x490c09){return request('CreateSmsMessage',{'body':_0x490c09});};exports[_0x7c9d('0x24')]=function(_0x2f67ad){return request(_0x7c9d('0x25'),{'body':_0x2f67ad});};exports[_0x7c9d('0x26')]=function(_0xc748f9){return request(_0x7c9d('0x27'),{'body':_[_0x7c9d('0x28')](_0xc748f9,{'project_name':_0xc748f9[_0x7c9d('0x29')],'prev_project_name':_0xc748f9[_0x7c9d('0x2a')]||'','is_subproject':_0xc748f9['arg_2']?!![]:![],'leaveAt':moment()[_0x7c9d('0x2b')](_0x7c9d('0x2c'))})});};exports['createSquareRecording']=function(_0x422436){return request('CreateSquareRecording',{'body':_0x422436});};exports[_0x7c9d('0x2d')]=function(_0x3ed9ea){return request(_0x7c9d('0x2e'),{'body':_0x3ed9ea});};exports[_0x7c9d('0x2f')]=function(_0x4bf9d4){return request('ShowCmHopper',{'options':{'raw':![],'where':{'phone':_0x4bf9d4[_0x7c9d('0x30')],'ListId':_0x4bf9d4[_0x7c9d('0x31')]}}})[_0x7c9d('0x7')](function(_0xd8315b){if(_0xd8315b){return _0xd8315b;}return request('CreateCmContact',{'body':_0x4bf9d4});});};exports[_0x7c9d('0x32')]=function(_0xd182fd){return request(_0x7c9d('0x33'),{'options':{'where':{'id':_0xd182fd},'attributes':[_0x7c9d('0x12')]}});};exports[_0x7c9d('0x34')]=function(_0x4dd61f,_0x271f94){return request(_0x7c9d('0x35'),{'body':{'interface':_0x271f94},'options':{'where':_0x4dd61f}});};exports[_0x7c9d('0x36')]=function(_0x21c7f0,_0x5c2342,_0x50a7ec){return request(_0x7c9d('0x37'),{'body':{'type':_0x5c2342,'uniqueid':_0x50a7ec},'options':{'where':_0x21c7f0}});};exports[_0x7c9d('0x38')]=function(_0x5a1dbf){return request(_0x7c9d('0x39'),{'body':{},'options':{'where':_0x5a1dbf}});};exports[_0x7c9d('0x3a')]=function(_0x248932){return request(_0x7c9d('0x3b'),{'body':{},'options':{'where':_0x248932}});};
\ No newline at end of file
+var _0x1c52=['getTrunkById','getSoundById','save_name','getSmsAccountById','ShowSmsAccount','createSmsMessage','createSquareReport','merge','arg_1','arg_2','YYYY-MM-DD\x20HH:mm:ss','createSquareRecording','createSquareMessage','CreateSquareMessage','ShowCmHopper','ListId','CreateCmContact','getPauseById','agentLogin','LoginUser','agentPause','agentUnpause','UnpauseUser','agentLogout','LogoutUser','bluebird','moment','util','client','http','request','then','error','result','catch','ShowSquareProject','getMailAccountById','Smtp','name','email','getSquareProjectById','getVoiceQueueById','getVariableById','ShowVariable','getSquareOdbcById','ShowSquareOdbc','dsn','ShowUser'];(function(_0x122ef9,_0x451d2a){var _0x42fba0=function(_0x17c9d3){while(--_0x17c9d3){_0x122ef9['push'](_0x122ef9['shift']());}};_0x42fba0(++_0x451d2a);}(_0x1c52,0xa9));var _0x21c5=function(_0x3f3940,_0x158134){_0x3f3940=_0x3f3940-0x0;var _0xdd1ff6=_0x1c52[_0x3f3940];return _0xdd1ff6;};'use strict';var BPromise=require(_0x21c5('0x0'));var moment=require(_0x21c5('0x1'));var _=require('lodash');var util=require(_0x21c5('0x2'));var jayson=require('jayson/promise');var client=jayson[_0x21c5('0x3')][_0x21c5('0x4')]({'port':0x2329});function request(_0x3ebf6e,_0x3a639b){return new BPromise(function(_0x994c52,_0x59bc56){return client[_0x21c5('0x5')](_0x3ebf6e,_0x3a639b)[_0x21c5('0x6')](function(_0xc7e95b){if(_0xc7e95b[_0x21c5('0x7')]){return _0x59bc56(_0xc7e95b['error']['message']);}else{return _0x994c52(_0xc7e95b[_0x21c5('0x8')]);}})[_0x21c5('0x9')](function(_0x2d926d){return _0x59bc56(_0x2d926d);});});}exports['getSquareProject']=function(_0x141a50){return request(_0x21c5('0xa'),{'options':{'raw':![],'where':{'name':_0x141a50},'attributes':['production']}});};exports[_0x21c5('0xb')]=function(_0x59f706){return request('ShowMailAccount',{'options':{'raw':![],'where':{'id':_0x59f706},'include':[{'model':'MailServerOut','as':_0x21c5('0xc')}],'attributes':['id',_0x21c5('0xd'),_0x21c5('0xe')]}});};exports[_0x21c5('0xf')]=function(_0x3ea3a0){return request('ShowSquareProject',{'options':{'where':{'id':_0x3ea3a0},'attributes':[_0x21c5('0xd')]}});};exports[_0x21c5('0x10')]=function(_0x410b6b){return request('ShowVoiceQueue',{'options':{'where':{'id':_0x410b6b},'attributes':[_0x21c5('0xd')]}});};exports[_0x21c5('0x11')]=function(_0xdb3e0b){return request(_0x21c5('0x12'),{'options':{'where':{'id':_0xdb3e0b},'attributes':['name']}});};exports[_0x21c5('0x13')]=function(_0xc2d464){return request(_0x21c5('0x14'),{'options':{'where':{'id':_0xc2d464},'attributes':[_0x21c5('0x15')]}});};exports['getUserById']=function(_0x3ce3d6){return request(_0x21c5('0x16'),{'options':{'where':{'id':_0x3ce3d6},'attributes':[_0x21c5('0xd')]}});};exports[_0x21c5('0x17')]=function(_0x124ca3){return request('ShowTrunk',{'options':{'where':{'id':_0x124ca3},'attributes':[_0x21c5('0xd')]}});};exports[_0x21c5('0x18')]=function(_0x283fd7){return request('ShowSound',{'options':{'where':{'id':_0x283fd7},'attributes':[_0x21c5('0x19')]}});};exports['getIntervalById']=function(_0x432ca7){return request('ShowInterval',{'options':{'raw':![],'where':{'id':_0x432ca7},'include':[{'model':'Interval','as':'Intervals'}]}});};exports[_0x21c5('0x1a')]=function(_0x57f203){return request(_0x21c5('0x1b'),{'options':{'where':{'id':_0x57f203},'attributes':['id','name']}});};exports[_0x21c5('0x1c')]=function(_0x2b07f2){return request('CreateSmsMessage',{'body':_0x2b07f2});};exports['createSquareDetailsReport']=function(_0x5d8853){return request('CreateSquareDetailsReport',{'body':_0x5d8853});};exports[_0x21c5('0x1d')]=function(_0x729260){return request('CreateSquareReport',{'body':_[_0x21c5('0x1e')](_0x729260,{'project_name':_0x729260[_0x21c5('0x1f')],'prev_project_name':_0x729260[_0x21c5('0x20')]||'','is_subproject':_0x729260['arg_2']?!![]:![],'leaveAt':moment()['format'](_0x21c5('0x21'))})});};exports[_0x21c5('0x22')]=function(_0x2fad52){return request('CreateSquareRecording',{'body':_0x2fad52});};exports[_0x21c5('0x23')]=function(_0x5533dc){return request(_0x21c5('0x24'),{'body':_0x5533dc});};exports['createCmContact']=function(_0x125ee0){return request(_0x21c5('0x25'),{'options':{'raw':![],'where':{'phone':_0x125ee0['phone'],'ListId':_0x125ee0[_0x21c5('0x26')]}}})[_0x21c5('0x6')](function(_0x300a6d){if(_0x300a6d){return _0x300a6d;}return request(_0x21c5('0x27'),{'body':_0x125ee0});});};exports[_0x21c5('0x28')]=function(_0x12bbbe){return request('ShowPause',{'options':{'where':{'id':_0x12bbbe},'attributes':[_0x21c5('0xd')]}});};exports[_0x21c5('0x29')]=function(_0x6d3cee,_0x20955f){return request(_0x21c5('0x2a'),{'body':{'interface':_0x20955f},'options':{'where':_0x6d3cee}});};exports[_0x21c5('0x2b')]=function(_0x8b704a,_0xd77a1b,_0x127b91){return request('PauseUser',{'body':{'type':_0xd77a1b,'uniqueid':_0x127b91},'options':{'where':_0x8b704a}});};exports[_0x21c5('0x2c')]=function(_0x31f802){return request(_0x21c5('0x2d'),{'body':{},'options':{'where':_0x31f802}});};exports[_0x21c5('0x2e')]=function(_0x42722e){return request(_0x21c5('0x2f'),{'body':{},'options':{'where':_0x42722e}});};
\ No newline at end of file