Built motion from commit df3e9871f6bcc3432fec345b2f4facbd4dba8b5c. Version 3.0.0...
[motion-next.git] / server / services / agi / rpc / index.js
index 5110dc0..e0e8635 100644 (file)
@@ -1 +1 @@
-const a1031_0x54ed=['getSmsAccountById','ShowVoiceQueue','Intervals','merge','jayson/promise','CreateSquareDetailsReport','production','MailServerOut','getUserById','request','error','CreateSquareRecording','getSquareProjectById','ShowMailAccount','LoginUser','CreateSmsMessage','CreateCmContact','lodash','name','catch','ShowSmsAccount','message','ShowSound','save_name','getPauseById','Smtp','phone','createCmContact','ShowTrunk','getMailAccountById','getTrunkById','format','arg_2','arg_1','agentLogin','ShowUser','ListId','agentLogout','Interval','ShowSquareProject','createSquareDetailsReport','getSquareOdbcById','getSoundById','createSquareMessage','then','result','CreateSquareReport','createSquareReport','ShowPause','ShowSquareOdbc','email','PauseUser','CreateSquareMessage','ShowVariable'];(function(_0x4dbfb2,_0x54ed3b){const _0x3f34fb=function(_0x13be50){while(--_0x13be50){_0x4dbfb2['push'](_0x4dbfb2['shift']());}};_0x3f34fb(++_0x54ed3b);}(a1031_0x54ed,0x103));const a1031_0x3f34=function(_0x4dbfb2,_0x54ed3b){_0x4dbfb2=_0x4dbfb2-0x0;let _0x3f34fb=a1031_0x54ed[_0x4dbfb2];return _0x3f34fb;};const _0x18a28f=a1031_0x3f34;'use strict';const moment=require('moment'),_=require(_0x18a28f('0x1c')),jayson=require(_0x18a28f('0xf')),client=jayson['client']['http']({'port':0x2329});function request(_0x13be50,_0x33cc30){return new Promise(function(_0x44e8a7,_0x478202){const _0x272609=a1031_0x3f34;return client[_0x272609('0x14')](_0x13be50,_0x33cc30)[_0x272609('0x1')](function(_0x2605e){const _0x9ae84a=_0x272609;return _0x2605e['error']?_0x478202(_0x2605e[_0x9ae84a('0x15')][_0x9ae84a('0x20')]):_0x44e8a7(_0x2605e[_0x9ae84a('0x2')]);})[_0x272609('0x1e')](function(_0x34421f){return _0x478202(_0x34421f);});});}exports['getSquareProject']=function(_0x32e949){const _0x24013d=_0x18a28f;return request(_0x24013d('0x32'),{'options':{'raw':![],'where':{'name':_0x32e949},'attributes':[_0x24013d('0x11')]}});},exports[_0x18a28f('0x28')]=function(_0x4ca8c3){const _0x330b4e=_0x18a28f;return request(_0x330b4e('0x18'),{'options':{'raw':![],'where':{'id':_0x4ca8c3},'include':[{'model':_0x330b4e('0x12'),'as':_0x330b4e('0x24')}],'attributes':['id','name',_0x330b4e('0x7')]}});},exports[_0x18a28f('0x17')]=function(_0x66aae7){const _0x483b84=_0x18a28f;return request(_0x483b84('0x32'),{'options':{'where':{'id':_0x66aae7},'attributes':[_0x483b84('0x1d')]}});},exports['getVoiceQueueById']=function(_0x58cb3b){const _0x4db00f=_0x18a28f;return request(_0x4db00f('0xc'),{'options':{'where':{'id':_0x58cb3b},'attributes':[_0x4db00f('0x1d')]}});},exports['getVariableById']=function(_0x24f896){const _0x2b9f00=_0x18a28f;return request(_0x2b9f00('0xa'),{'options':{'where':{'id':_0x24f896},'attributes':[_0x2b9f00('0x1d')]}});},exports[_0x18a28f('0x34')]=function(_0x5271ea){const _0x393e59=_0x18a28f;return request(_0x393e59('0x6'),{'options':{'where':{'id':_0x5271ea},'attributes':['dsn']}});},exports[_0x18a28f('0x13')]=function(_0x1bcd65){const _0x4e5e00=_0x18a28f;return request(_0x4e5e00('0x2e'),{'options':{'where':{'id':_0x1bcd65},'attributes':[_0x4e5e00('0x1d')]}});},exports[_0x18a28f('0x29')]=function(_0x220f85){const _0x1cf11a=_0x18a28f;return request(_0x1cf11a('0x27'),{'options':{'where':{'id':_0x220f85},'attributes':[_0x1cf11a('0x1d')]}});},exports[_0x18a28f('0x35')]=function(_0x9c8e4e){const _0xe69695=_0x18a28f;return request(_0xe69695('0x21'),{'options':{'where':{'id':_0x9c8e4e},'attributes':[_0xe69695('0x22')]}});},exports['getIntervalById']=function(_0x28bab7){const _0x2bdcfd=_0x18a28f;return request('ShowInterval',{'options':{'raw':![],'where':{'id':_0x28bab7},'include':[{'model':_0x2bdcfd('0x31'),'as':_0x2bdcfd('0xd')}]}});},exports[_0x18a28f('0xb')]=function(_0x3c66d7){const _0x17a81b=_0x18a28f;return request(_0x17a81b('0x1f'),{'options':{'where':{'id':_0x3c66d7},'attributes':['id',_0x17a81b('0x1d')]}});},exports['createSmsMessage']=function(_0x483e09){const _0x412184=_0x18a28f;return request(_0x412184('0x1a'),{'body':_0x483e09});},exports[_0x18a28f('0x33')]=function(_0x4604af){const _0x52a44a=_0x18a28f;return request(_0x52a44a('0x10'),{'body':_0x4604af});},exports[_0x18a28f('0x4')]=function(_0x5a1048){const _0x4421d7=_0x18a28f;return request(_0x4421d7('0x3'),{'body':_[_0x4421d7('0xe')](_0x5a1048,{'project_name':_0x5a1048[_0x4421d7('0x2c')],'prev_project_name':_0x5a1048[_0x4421d7('0x2b')]||'','is_subproject':_0x5a1048[_0x4421d7('0x2b')]?!![]:![],'leaveAt':moment()[_0x4421d7('0x2a')]('YYYY-MM-DD\x20HH:mm:ss')})});},exports['createSquareRecording']=function(_0x16a6db){const _0x3d8832=_0x18a28f;return request(_0x3d8832('0x16'),{'body':_0x16a6db});},exports[_0x18a28f('0x0')]=function(_0x5bf33b){const _0x5b9f77=_0x18a28f;return request(_0x5b9f77('0x9'),{'body':_0x5bf33b});},exports[_0x18a28f('0x26')]=function(_0x7738a9){const _0x53ae2d=_0x18a28f;return request('ShowCmHopper',{'options':{'raw':![],'where':{'phone':_0x7738a9[_0x53ae2d('0x25')],'ListId':_0x7738a9[_0x53ae2d('0x2f')]}}})[_0x53ae2d('0x1')](function(_0x20f4bb){const _0x1526be=_0x53ae2d;if(_0x20f4bb)return _0x20f4bb;return request(_0x1526be('0x1b'),{'body':_0x7738a9});});},exports[_0x18a28f('0x23')]=function(_0x2c5830){const _0x3f0669=_0x18a28f;return request(_0x3f0669('0x5'),{'options':{'where':{'id':_0x2c5830},'attributes':[_0x3f0669('0x1d')]}});},exports[_0x18a28f('0x2d')]=function(_0x4729f1,_0x54b549){const _0x590382=_0x18a28f;return request(_0x590382('0x19'),{'body':{'interface':_0x54b549},'options':{'where':_0x4729f1}});},exports['agentPause']=function(_0x60ab7e,_0x694e6e,_0x453748){const _0x580910=_0x18a28f;return request(_0x580910('0x8'),{'body':{'type':_0x694e6e,'uniqueid':_0x453748},'options':{'where':_0x60ab7e}});},exports['agentUnpause']=function(_0x4535e3){return request('UnpauseUser',{'body':{},'options':{'where':_0x4535e3}});},exports[_0x18a28f('0x30')]=function(_0x15f87c){return request('LogoutUser',{'body':{},'options':{'where':_0x15f87c}});};
\ No newline at end of file
+const a1031_0x3af3=['moment','dsn','ShowInterval','PauseUser','name','merge','catch','Intervals','CreateCmContact','CreateSmsMessage','YYYY-MM-DD\x20HH:mm:ss','Interval','createSquareDetailsReport','error','request','jayson/promise','getVariableById','createSquareMessage','CreateSquareDetailsReport','ShowVoiceQueue','getTrunkById','arg_1','createSquareRecording','CreateSquareMessage','format','getSquareProjectById','createSquareReport','getSquareOdbcById','Smtp','UnpauseUser','arg_2','CreateSquareReport','getIntervalById','ShowSquareProject','message','ShowTrunk','CreateSquareRecording','ListId','ShowSound','production','ShowSquareOdbc','agentLogin','then','agentPause','result','email','getSoundById','http','getPauseById','agentLogout','getSmsAccountById'];(function(_0x4362a6,_0x3af3a9){const _0xbabfec=function(_0x45bba3){while(--_0x45bba3){_0x4362a6['push'](_0x4362a6['shift']());}};_0xbabfec(++_0x3af3a9);}(a1031_0x3af3,0x11a));const a1031_0xbabf=function(_0x4362a6,_0x3af3a9){_0x4362a6=_0x4362a6-0x0;let _0xbabfec=a1031_0x3af3[_0x4362a6];return _0xbabfec;};const _0x3b4034=a1031_0xbabf;'use strict';const moment=require(_0x3b4034('0x18')),_=require('lodash'),jayson=require(_0x3b4034('0x27')),client=jayson['client'][_0x3b4034('0x14')]({'port':0x2329});function request(_0x45bba3,_0x2c686d){return new Promise(function(_0x57dc58,_0x4eabc0){const _0x330977=a1031_0xbabf;return client[_0x330977('0x26')](_0x45bba3,_0x2c686d)[_0x330977('0xf')](function(_0x40da9e){const _0x2a367b=_0x330977;return _0x40da9e[_0x2a367b('0x25')]?_0x4eabc0(_0x40da9e[_0x2a367b('0x25')][_0x2a367b('0x7')]):_0x57dc58(_0x40da9e[_0x2a367b('0x11')]);})[_0x330977('0x1e')](function(_0x4a5dc0){return _0x4eabc0(_0x4a5dc0);});});}exports['getSquareProject']=function(_0x595a8e){const _0x55755b=_0x3b4034;return request(_0x55755b('0x6'),{'options':{'raw':![],'where':{'name':_0x595a8e},'attributes':[_0x55755b('0xc')]}});},exports['getMailAccountById']=function(_0x13d9b1){const _0x3cb1a6=_0x3b4034;return request('ShowMailAccount',{'options':{'raw':![],'where':{'id':_0x13d9b1},'include':[{'model':'MailServerOut','as':_0x3cb1a6('0x1')}],'attributes':['id',_0x3cb1a6('0x1c'),_0x3cb1a6('0x12')]}});},exports[_0x3b4034('0x31')]=function(_0x13ee9a){const _0x305bab=_0x3b4034;return request(_0x305bab('0x6'),{'options':{'where':{'id':_0x13ee9a},'attributes':[_0x305bab('0x1c')]}});},exports['getVoiceQueueById']=function(_0x4c6802){const _0x1c8df1=_0x3b4034;return request(_0x1c8df1('0x2b'),{'options':{'where':{'id':_0x4c6802},'attributes':[_0x1c8df1('0x1c')]}});},exports[_0x3b4034('0x28')]=function(_0xd1d23){const _0x482d5d=_0x3b4034;return request('ShowVariable',{'options':{'where':{'id':_0xd1d23},'attributes':[_0x482d5d('0x1c')]}});},exports[_0x3b4034('0x0')]=function(_0x189161){const _0xdd1dfb=_0x3b4034;return request(_0xdd1dfb('0xd'),{'options':{'where':{'id':_0x189161},'attributes':[_0xdd1dfb('0x19')]}});},exports['getUserById']=function(_0x10fe36){const _0x205586=_0x3b4034;return request('ShowUser',{'options':{'where':{'id':_0x10fe36},'attributes':[_0x205586('0x1c')]}});},exports[_0x3b4034('0x2c')]=function(_0x2a6dfd){const _0x1cdb1c=_0x3b4034;return request(_0x1cdb1c('0x8'),{'options':{'where':{'id':_0x2a6dfd},'attributes':[_0x1cdb1c('0x1c')]}});},exports[_0x3b4034('0x13')]=function(_0x43b391){const _0x1edad6=_0x3b4034;return request(_0x1edad6('0xb'),{'options':{'where':{'id':_0x43b391},'attributes':['save_name']}});},exports[_0x3b4034('0x5')]=function(_0x117c0f){const _0x2bcfdd=_0x3b4034;return request(_0x2bcfdd('0x1a'),{'options':{'raw':![],'where':{'id':_0x117c0f},'include':[{'model':_0x2bcfdd('0x23'),'as':_0x2bcfdd('0x1f')}]}});},exports[_0x3b4034('0x17')]=function(_0x2dd073){const _0x1975b0=_0x3b4034;return request('ShowSmsAccount',{'options':{'where':{'id':_0x2dd073},'attributes':['id',_0x1975b0('0x1c')]}});},exports['createSmsMessage']=function(_0x15ad26){const _0x57d9f8=_0x3b4034;return request(_0x57d9f8('0x21'),{'body':_0x15ad26});},exports[_0x3b4034('0x24')]=function(_0x4d7866){const _0x3cccd7=_0x3b4034;return request(_0x3cccd7('0x2a'),{'body':_0x4d7866});},exports[_0x3b4034('0x32')]=function(_0x29e1e0){const _0x981804=_0x3b4034;return request(_0x981804('0x4'),{'body':_[_0x981804('0x1d')](_0x29e1e0,{'project_name':_0x29e1e0[_0x981804('0x2d')],'prev_project_name':_0x29e1e0[_0x981804('0x3')]||'','is_subproject':_0x29e1e0[_0x981804('0x3')]?!![]:![],'leaveAt':moment()[_0x981804('0x30')](_0x981804('0x22'))})});},exports[_0x3b4034('0x2e')]=function(_0x16803){const _0x1964f8=_0x3b4034;return request(_0x1964f8('0x9'),{'body':_0x16803});},exports[_0x3b4034('0x29')]=function(_0x397a89){const _0x3aa09b=_0x3b4034;return request(_0x3aa09b('0x2f'),{'body':_0x397a89});},exports['createCmContact']=function(_0x43567f){const _0x49b372=_0x3b4034;return request('ShowCmHopper',{'options':{'raw':![],'where':{'phone':_0x43567f['phone'],'ListId':_0x43567f[_0x49b372('0xa')]}}})['then'](function(_0x2b22d3){const _0x50a997=_0x49b372;if(_0x2b22d3)return _0x2b22d3;return request(_0x50a997('0x20'),{'body':_0x43567f});});},exports[_0x3b4034('0x15')]=function(_0x46f8b5){const _0x776897=_0x3b4034;return request('ShowPause',{'options':{'where':{'id':_0x46f8b5},'attributes':[_0x776897('0x1c')]}});},exports[_0x3b4034('0xe')]=function(_0x46535f,_0x2ea68c){return request('LoginUser',{'body':{'interface':_0x2ea68c},'options':{'where':_0x46535f}});},exports[_0x3b4034('0x10')]=function(_0x11a673,_0x145c7a,_0x36315a){const _0x1fbbb4=_0x3b4034;return request(_0x1fbbb4('0x1b'),{'body':{'type':_0x145c7a,'uniqueid':_0x36315a},'options':{'where':_0x11a673}});},exports['agentUnpause']=function(_0xa0cec3){const _0x53ff0b=_0x3b4034;return request(_0x53ff0b('0x2'),{'body':{},'options':{'where':_0xa0cec3}});},exports[_0x3b4034('0x16')]=function(_0x308a8a){return request('LogoutUser',{'body':{},'options':{'where':_0x308a8a}});};
\ No newline at end of file