Built motion from commit f738f9592c388b9f9eb3948f400a5c9d717a3561. Version 3.0.0...
[motion-next.git] / server / services / agi / rpc / index.js
index 2d5065f..80c37e8 100644 (file)
@@ -1 +1 @@
-const a1196_0x5636=['error','phone','CreateSquareDetailsReport','agentLogout','ShowSound','CreateSquareReport','getMailAccountById','result','CreateCmContact','then','merge','createSquareMessage','format','request','createCmContact','save_name','Smtp','getSquareProjectById','CreateSmsMessage','ShowMailAccount','PauseUser','ShowVariable','dsn','ShowSquareProject','Intervals','ShowCmHopper','getSoundById','ShowPause','LogoutUser','arg_2','ShowVoiceQueue','ShowSquareOdbc','lodash','createSmsMessage','client','getIntervalById','Interval','message','createSquareReport','name','getVariableById','http','agentPause','catch','getVoiceQueueById','getSmsAccountById','ShowInterval','MailServerOut','email','getUserById','ListId'];(function(_0x2f5069,_0x47ab48){const _0x56369a=function(_0x20ca5a){while(--_0x20ca5a){_0x2f5069['push'](_0x2f5069['shift']());}};_0x56369a(++_0x47ab48);}(a1196_0x5636,0x1e0));const a1196_0x20ca=function(_0x2f5069,_0x47ab48){_0x2f5069=_0x2f5069-0x1ce;let _0x56369a=a1196_0x5636[_0x2f5069];return _0x56369a;};const a1196_0x3cd240=a1196_0x20ca;'use strict';const moment=require('moment'),_=require(a1196_0x3cd240(0x1d9)),jayson=require('jayson/promise'),client=jayson[a1196_0x3cd240(0x1db)][a1196_0x3cd240(0x1e2)]({'port':0x2329});function request(_0x2004d8,_0x3ad2e3){return new Promise(function(_0x1c3cad,_0x47b175){const _0xce0a84=a1196_0x20ca;return client[_0xce0a84(0x1f9)](_0x2004d8,_0x3ad2e3)[_0xce0a84(0x1f5)](function(_0x2db557){const _0x49c0b7=_0xce0a84;return _0x2db557[_0x49c0b7(0x1ec)]?_0x47b175(_0x2db557[_0x49c0b7(0x1ec)][_0x49c0b7(0x1de)]):_0x1c3cad(_0x2db557[_0x49c0b7(0x1f3)]);})[_0xce0a84(0x1e4)](function(_0x16a093){return _0x47b175(_0x16a093);});});}exports['getSquareProject']=function(_0x50edd9){const _0x4124e5=a1196_0x3cd240;return request(_0x4124e5(0x1d0),{'options':{'raw':![],'where':{'name':_0x50edd9},'attributes':['production']}});},exports[a1196_0x3cd240(0x1f2)]=function(_0x494544){const _0x2d8002=a1196_0x3cd240;return request(_0x2d8002(0x1ff),{'options':{'raw':![],'where':{'id':_0x494544},'include':[{'model':_0x2d8002(0x1e8),'as':_0x2d8002(0x1fc)}],'attributes':['id',_0x2d8002(0x1e0),_0x2d8002(0x1e9)]}});},exports[a1196_0x3cd240(0x1fd)]=function(_0x2e3c8f){const _0x3acfb7=a1196_0x3cd240;return request('ShowSquareProject',{'options':{'where':{'id':_0x2e3c8f},'attributes':[_0x3acfb7(0x1e0)]}});},exports[a1196_0x3cd240(0x1e5)]=function(_0x337fc9){const _0x3a194c=a1196_0x3cd240;return request(_0x3a194c(0x1d7),{'options':{'where':{'id':_0x337fc9},'attributes':[_0x3a194c(0x1e0)]}});},exports[a1196_0x3cd240(0x1e1)]=function(_0x420b57){const _0x357782=a1196_0x3cd240;return request(_0x357782(0x1ce),{'options':{'where':{'id':_0x420b57},'attributes':[_0x357782(0x1e0)]}});},exports['getSquareOdbcById']=function(_0x15a7bb){const _0x47c1cf=a1196_0x3cd240;return request(_0x47c1cf(0x1d8),{'options':{'where':{'id':_0x15a7bb},'attributes':[_0x47c1cf(0x1cf)]}});},exports[a1196_0x3cd240(0x1ea)]=function(_0x33a85d){const _0x5223cc=a1196_0x3cd240;return request('ShowUser',{'options':{'where':{'id':_0x33a85d},'attributes':[_0x5223cc(0x1e0)]}});},exports['getTrunkById']=function(_0x4e3726){return request('ShowTrunk',{'options':{'where':{'id':_0x4e3726},'attributes':['name']}});},exports[a1196_0x3cd240(0x1d3)]=function(_0x1346c9){const _0x3cf591=a1196_0x3cd240;return request(_0x3cf591(0x1f0),{'options':{'where':{'id':_0x1346c9},'attributes':[_0x3cf591(0x1fb)]}});},exports[a1196_0x3cd240(0x1dc)]=function(_0x3a72cd){const _0x5de43d=a1196_0x3cd240;return request(_0x5de43d(0x1e7),{'options':{'raw':![],'where':{'id':_0x3a72cd},'include':[{'model':_0x5de43d(0x1dd),'as':_0x5de43d(0x1d1)}]}});},exports[a1196_0x3cd240(0x1e6)]=function(_0xd1e253){const _0x548422=a1196_0x3cd240;return request('ShowSmsAccount',{'options':{'where':{'id':_0xd1e253},'attributes':['id',_0x548422(0x1e0)]}});},exports[a1196_0x3cd240(0x1da)]=function(_0x5b254e){const _0x240b77=a1196_0x3cd240;return request(_0x240b77(0x1fe),{'body':_0x5b254e});},exports['createSquareDetailsReport']=function(_0x4ac950){const _0x2d85ad=a1196_0x3cd240;return request(_0x2d85ad(0x1ee),{'body':_0x4ac950});},exports[a1196_0x3cd240(0x1df)]=function(_0x53cc6a){const _0x3eaaab=a1196_0x3cd240;return request(_0x3eaaab(0x1f1),{'body':_[_0x3eaaab(0x1f6)](_0x53cc6a,{'project_name':_0x53cc6a['arg_1'],'prev_project_name':_0x53cc6a[_0x3eaaab(0x1d6)]||'','is_subproject':_0x53cc6a[_0x3eaaab(0x1d6)]?!![]:![],'leaveAt':moment()[_0x3eaaab(0x1f8)]('YYYY-MM-DD\x20HH:mm:ss')})});},exports['createSquareRecording']=function(_0x296570){return request('CreateSquareRecording',{'body':_0x296570});},exports[a1196_0x3cd240(0x1f7)]=function(_0x586ae4){return request('CreateSquareMessage',{'body':_0x586ae4});},exports[a1196_0x3cd240(0x1fa)]=function(_0x26eea9){const _0x262d9d=a1196_0x3cd240;return request(_0x262d9d(0x1d2),{'options':{'raw':![],'where':{'phone':_0x26eea9[_0x262d9d(0x1ed)],'ListId':_0x26eea9[_0x262d9d(0x1eb)]}}})[_0x262d9d(0x1f5)](function(_0x2afd58){const _0x20b2ac=_0x262d9d;if(_0x2afd58)return _0x2afd58;return request(_0x20b2ac(0x1f4),{'body':_0x26eea9});});},exports['getPauseById']=function(_0x2ba804){const _0xca8ee8=a1196_0x3cd240;return request(_0xca8ee8(0x1d4),{'options':{'where':{'id':_0x2ba804},'attributes':['name']}});},exports['agentLogin']=function(_0x2c645c,_0x3cc043){return request('LoginUser',{'body':{'interface':_0x3cc043},'options':{'where':_0x2c645c}});},exports[a1196_0x3cd240(0x1e3)]=function(_0x1ad080,_0xdd8c14,_0x372c05){const _0x46b301=a1196_0x3cd240;return request(_0x46b301(0x200),{'body':{'type':_0xdd8c14,'uniqueid':_0x372c05},'options':{'where':_0x1ad080}});},exports['agentUnpause']=function(_0x4137c2){return request('UnpauseUser',{'body':{},'options':{'where':_0x4137c2}});},exports[a1196_0x3cd240(0x1ef)]=function(_0x2f40cd){const _0x49a120=a1196_0x3cd240;return request(_0x49a120(0x1d5),{'body':{},'options':{'where':_0x2f40cd}});};
\ No newline at end of file
+const a1200_0x42d7=['ShowVariable','message','getSmsAccountById','ShowSmsAccount','CreateSquareDetailsReport','agentUnpause','createSquareReport','LogoutUser','ShowVoiceQueue','ListId','error','arg_2','getUserById','YYYY-MM-DD\x20HH:mm:ss','merge','moment','ShowSquareOdbc','CreateSquareRecording','ShowMailAccount','createSquareDetailsReport','agentLogout','LoginUser','Intervals','lodash','Interval','getTrunkById','getPauseById','getVoiceQueueById','ShowCmHopper','production','then','ShowPause','getVariableById','createCmContact','createSquareMessage','http','ShowSound','name','agentLogin','ShowTrunk','CreateSquareMessage','PauseUser','UnpauseUser','CreateCmContact','dsn','email','agentPause','getIntervalById','CreateSquareReport','catch','getSquareProject','jayson/promise','getSquareOdbcById','ShowSquareProject','getSquareProjectById'];(function(_0x1536c8,_0x56acce){const _0x42d707=function(_0x14d7f6){while(--_0x14d7f6){_0x1536c8['push'](_0x1536c8['shift']());}};_0x42d707(++_0x56acce);}(a1200_0x42d7,0xe2));const a1200_0x14d7=function(_0x1536c8,_0x56acce){_0x1536c8=_0x1536c8-0x1c0;let _0x42d707=a1200_0x42d7[_0x1536c8];return _0x42d707;};const a1200_0x5084c5=a1200_0x14d7;'use strict';const moment=require(a1200_0x5084c5(0x1c9)),_=require(a1200_0x5084c5(0x1d1)),jayson=require(a1200_0x5084c5(0x1ed)),client=jayson['client'][a1200_0x5084c5(0x1dd)]({'port':0x2329});function request(_0xc9a0ed,_0x385a74){return new Promise(function(_0x1a846b,_0x17e3a1){const _0x128463=a1200_0x14d7;return client['request'](_0xc9a0ed,_0x385a74)[_0x128463(0x1d8)](function(_0x4d23f8){const _0x2144cc=_0x128463;return _0x4d23f8[_0x2144cc(0x1c4)]?_0x17e3a1(_0x4d23f8['error'][_0x2144cc(0x1f2)]):_0x1a846b(_0x4d23f8['result']);})[_0x128463(0x1eb)](function(_0x5006a8){return _0x17e3a1(_0x5006a8);});});}exports[a1200_0x5084c5(0x1ec)]=function(_0x474daf){const _0x24e799=a1200_0x5084c5;return request('ShowSquareProject',{'options':{'raw':![],'where':{'name':_0x474daf},'attributes':[_0x24e799(0x1d7)]}});},exports['getMailAccountById']=function(_0x42b343){const _0x340b37=a1200_0x5084c5;return request(_0x340b37(0x1cc),{'options':{'raw':![],'where':{'id':_0x42b343},'include':[{'model':'MailServerOut','as':'Smtp'}],'attributes':['id',_0x340b37(0x1df),_0x340b37(0x1e7)]}});},exports[a1200_0x5084c5(0x1f0)]=function(_0x4646c3){const _0x528eae=a1200_0x5084c5;return request(_0x528eae(0x1ef),{'options':{'where':{'id':_0x4646c3},'attributes':[_0x528eae(0x1df)]}});},exports[a1200_0x5084c5(0x1d5)]=function(_0x5887af){const _0x1864f9=a1200_0x5084c5;return request(_0x1864f9(0x1c2),{'options':{'where':{'id':_0x5887af},'attributes':[_0x1864f9(0x1df)]}});},exports[a1200_0x5084c5(0x1da)]=function(_0x58fcbc){const _0x6c7c62=a1200_0x5084c5;return request(_0x6c7c62(0x1f1),{'options':{'where':{'id':_0x58fcbc},'attributes':[_0x6c7c62(0x1df)]}});},exports[a1200_0x5084c5(0x1ee)]=function(_0xaf1053){const _0x21c9cc=a1200_0x5084c5;return request(_0x21c9cc(0x1ca),{'options':{'where':{'id':_0xaf1053},'attributes':[_0x21c9cc(0x1e6)]}});},exports[a1200_0x5084c5(0x1c6)]=function(_0xe3eeff){const _0x7f4b6a=a1200_0x5084c5;return request('ShowUser',{'options':{'where':{'id':_0xe3eeff},'attributes':[_0x7f4b6a(0x1df)]}});},exports[a1200_0x5084c5(0x1d3)]=function(_0x5a6b1c){const _0x2ab9ce=a1200_0x5084c5;return request(_0x2ab9ce(0x1e1),{'options':{'where':{'id':_0x5a6b1c},'attributes':[_0x2ab9ce(0x1df)]}});},exports['getSoundById']=function(_0x11bca4){const _0x157462=a1200_0x5084c5;return request(_0x157462(0x1de),{'options':{'where':{'id':_0x11bca4},'attributes':['save_name']}});},exports[a1200_0x5084c5(0x1e9)]=function(_0x315d16){const _0x4ef002=a1200_0x5084c5;return request('ShowInterval',{'options':{'raw':![],'where':{'id':_0x315d16},'include':[{'model':_0x4ef002(0x1d2),'as':_0x4ef002(0x1d0)}]}});},exports[a1200_0x5084c5(0x1f3)]=function(_0x37908e){const _0x1f5ab9=a1200_0x5084c5;return request(_0x1f5ab9(0x1f4),{'options':{'where':{'id':_0x37908e},'attributes':['id',_0x1f5ab9(0x1df)]}});},exports['createSmsMessage']=function(_0x23fc55){return request('CreateSmsMessage',{'body':_0x23fc55});},exports[a1200_0x5084c5(0x1cd)]=function(_0x205402){const _0x3fefc3=a1200_0x5084c5;return request(_0x3fefc3(0x1f5),{'body':_0x205402});},exports[a1200_0x5084c5(0x1c0)]=function(_0x547cb2){const _0x25ed13=a1200_0x5084c5;return request(_0x25ed13(0x1ea),{'body':_[_0x25ed13(0x1c8)](_0x547cb2,{'project_name':_0x547cb2['arg_1'],'prev_project_name':_0x547cb2[_0x25ed13(0x1c5)]||'','is_subproject':_0x547cb2[_0x25ed13(0x1c5)]?!![]:![],'leaveAt':moment()['format'](_0x25ed13(0x1c7))})});},exports['createSquareRecording']=function(_0x55f3ed){const _0x8dec9=a1200_0x5084c5;return request(_0x8dec9(0x1cb),{'body':_0x55f3ed});},exports[a1200_0x5084c5(0x1dc)]=function(_0x159368){const _0x5486a0=a1200_0x5084c5;return request(_0x5486a0(0x1e2),{'body':_0x159368});},exports[a1200_0x5084c5(0x1db)]=function(_0x1db136){const _0x6cc9ab=a1200_0x5084c5;return request(_0x6cc9ab(0x1d6),{'options':{'raw':![],'where':{'phone':_0x1db136['phone'],'ListId':_0x1db136[_0x6cc9ab(0x1c3)]}}})[_0x6cc9ab(0x1d8)](function(_0xd8d90e){const _0x214cd4=_0x6cc9ab;if(_0xd8d90e)return _0xd8d90e;return request(_0x214cd4(0x1e5),{'body':_0x1db136});});},exports[a1200_0x5084c5(0x1d4)]=function(_0x24c57e){const _0x2f8134=a1200_0x5084c5;return request(_0x2f8134(0x1d9),{'options':{'where':{'id':_0x24c57e},'attributes':[_0x2f8134(0x1df)]}});},exports[a1200_0x5084c5(0x1e0)]=function(_0x351e6b,_0x1e99d0){const _0x439098=a1200_0x5084c5;return request(_0x439098(0x1cf),{'body':{'interface':_0x1e99d0},'options':{'where':_0x351e6b}});},exports[a1200_0x5084c5(0x1e8)]=function(_0x304963,_0x49c2c7,_0x4cc7a3){const _0x552373=a1200_0x5084c5;return request(_0x552373(0x1e3),{'body':{'type':_0x49c2c7,'uniqueid':_0x4cc7a3},'options':{'where':_0x304963}});},exports[a1200_0x5084c5(0x1f6)]=function(_0x3c947e){const _0x42e546=a1200_0x5084c5;return request(_0x42e546(0x1e4),{'body':{},'options':{'where':_0x3c947e}});},exports[a1200_0x5084c5(0x1ce)]=function(_0xfab477){const _0x4c9a38=a1200_0x5084c5;return request(_0x4c9a38(0x1c1),{'body':{},'options':{'where':_0xfab477}});};
\ No newline at end of file