Built motion from commit 973e3e332e1c8e2f84c4b0cd2e5af794131724f5. Version 3.0.0...
[motion-next.git] / server / services / ami / dialer / action.js
index d661cba..4f3af47 100644 (file)
@@ -1 +1 @@
-const a1051_0x3976=['lastName','string','countdropretry','name','queue','phone','CampaignId','originatecalleridname','countnosuchnumberretry','firstName','countbusyretry','substring','getQueue','countcongestionretry','recallme','ContactFirstName','originatecalleridnum','format','VoiceQueueId','scheduledat','active','dialCutDigit','callbackat','countmachineretry','ListId','lodash','prototype','Contact','isNil','uniqueid','UserId','YYYY-MM-DD\x20HH:mm:ss','callback','ContactId','type','idHopper','countabandonedretry','voiceQueue','moment','countnoanswerretry','number','countagentrejectretry','callbackuniqueid'];(function(_0x4f703b,_0x3976d4){const _0x1e5741=function(_0x5e7d9b){while(--_0x5e7d9b){_0x4f703b['push'](_0x4f703b['shift']());}};_0x1e5741(++_0x3976d4);}(a1051_0x3976,0xae));const a1051_0x1e57=function(_0x4f703b,_0x3976d4){_0x4f703b=_0x4f703b-0x0;let _0x1e5741=a1051_0x3976[_0x4f703b];return _0x1e5741;};const _0xdd3530=a1051_0x1e57;'use strict';const util=require('util'),_=require(_0xdd3530('0x17')),moment=require(_0xdd3530('0x24'));function checkNameSurname(_0x5e7d9b,_0x4b9018,_0x1fd09b){const _0x4039a5=_0xdd3530;let _0x36d050='';!_[_0x4039a5('0x1a')](_0x4b9018)&&_0x4039a5('0x2a')===typeof _0x4b9018&&(_0x36d050+=_0x4b9018);!_['isNil'](_0x1fd09b)&&_0x4039a5('0x2a')===typeof _0x1fd09b&&(_0x36d050+='\x20'+_0x1fd09b);if(_0x36d050!=='')return _0x36d050;return _0x5e7d9b;}function Action(_0x237a35,_0x29f907,_0x588317){const _0xa5a0cb=_0xdd3530;this[_0xa5a0cb('0x23')]=_0x237a35,this[_0xa5a0cb('0x1b')]=_0x588317||undefined,this['name']=checkNameSurname(_0x29f907[_0xa5a0cb('0x19')][_0xa5a0cb('0x3')],_0x29f907[_0xa5a0cb('0x19')]['firstName'],_0x29f907[_0xa5a0cb('0x19')][_0xa5a0cb('0x29')]),this[_0xa5a0cb('0x26')]=_0x29f907[_0xa5a0cb('0x19')]['phone'],this['queue']=_0x237a35['name'],this[_0xa5a0cb('0x12')]=_0x29f907[_0xa5a0cb('0x12')]||![],this[_0xa5a0cb('0x20')]=_0x237a35['type'],this['dialQueueTimeout']=_0x237a35['dialQueueTimeout']||0x3,this['scheduledat']=_0x29f907[_0xa5a0cb('0x11')],this[_0xa5a0cb('0x8')]=_0x29f907['countbusyretry'],this[_0xa5a0cb('0xb')]=_0x29f907[_0xa5a0cb('0xb')],this[_0xa5a0cb('0x25')]=_0x29f907['countnoanswerretry'],this[_0xa5a0cb('0x6')]=_0x29f907[_0xa5a0cb('0x6')],this['countdropretry']=_0x29f907[_0xa5a0cb('0x0')],this[_0xa5a0cb('0x22')]=_0x29f907[_0xa5a0cb('0x22')],this[_0xa5a0cb('0x15')]=_0x29f907[_0xa5a0cb('0x15')],this[_0xa5a0cb('0x27')]=_0x29f907[_0xa5a0cb('0x27')],this[_0xa5a0cb('0x1f')]=_0x29f907[_0xa5a0cb('0x1f')],this[_0xa5a0cb('0x16')]=_0x29f907[_0xa5a0cb('0x16')],this['UserId']=_0x29f907[_0xa5a0cb('0x1c')],this[_0xa5a0cb('0x10')]=_0x29f907[_0xa5a0cb('0x10')],this[_0xa5a0cb('0x4')]=_0x29f907['CampaignId'],this[_0xa5a0cb('0x21')]=_0x29f907['id'],this[_0xa5a0cb('0xd')]=_0x29f907[_0xa5a0cb('0x19')][_0xa5a0cb('0x7')]||'',this['starttime']=moment()[_0xa5a0cb('0xf')](_0xa5a0cb('0x1d')),this[_0xa5a0cb('0x1e')]=_0x29f907[_0xa5a0cb('0x1e')],this[_0xa5a0cb('0x28')]=_0x29f907[_0xa5a0cb('0x28')],this[_0xa5a0cb('0x14')]=_0x29f907[_0xa5a0cb('0x14')],this[_0xa5a0cb('0xc')]=_0x29f907[_0xa5a0cb('0xc')],this[_0xa5a0cb('0xe')]='',this[_0xa5a0cb('0x5')]='';}Action[_0xdd3530('0x18')]['getCaller']=function(){const _0x3f0d33=_0xdd3530;return util[_0x3f0d33('0xf')]('\x22%s\x22\x20<%s>',this[_0x3f0d33('0x1')],this[_0x3f0d33('0x23')][_0x3f0d33('0x13')]>0x0?this[_0x3f0d33('0x26')][_0x3f0d33('0x9')](this[_0x3f0d33('0x23')][_0x3f0d33('0x13')]):this[_0x3f0d33('0x26')]);},Action[_0xdd3530('0x18')][_0xdd3530('0xa')]=function(){const _0x578ae1=_0xdd3530;return this[_0x578ae1('0x2')];},module['exports']=Action;
\ No newline at end of file
+const a1052_0x3307=['active','UserId','Contact','scheduledat','lodash','callbackuniqueid','countagentrejectretry','countdropretry','starttime','countnoanswerretry','exports','idHopper','YYYY-MM-DD\x20HH:mm:ss','type','prototype','ContactId','dialCutDigit','isNil','recallme','countbusyretry','ContactFirstName','countmachineretry','voiceQueue','number','VoiceQueueId','firstName','dialQueueTimeout','queue','format','string','callbackat','ListId','name','callback','lastName','util','countnosuchnumberretry','phone','countcongestionretry','uniqueid','CampaignId'];(function(_0x14d89f,_0x3307c0){const _0x1645db=function(_0x3ec349){while(--_0x3ec349){_0x14d89f['push'](_0x14d89f['shift']());}};_0x1645db(++_0x3307c0);}(a1052_0x3307,0x13c));const a1052_0x1645=function(_0x14d89f,_0x3307c0){_0x14d89f=_0x14d89f-0x0;let _0x1645db=a1052_0x3307[_0x14d89f];return _0x1645db;};const _0x42feb4=a1052_0x1645;'use strict';const util=require(_0x42feb4('0x6')),_=require(_0x42feb4('0x10')),moment=require('moment');function checkNameSurname(_0x3ec349,_0x187aa4,_0x1f3d33){const _0x402fc3=_0x42feb4;let _0x3fd8fa='';!_[_0x402fc3('0x1d')](_0x187aa4)&&_0x402fc3('0x0')===typeof _0x187aa4&&(_0x3fd8fa+=_0x187aa4);!_[_0x402fc3('0x1d')](_0x1f3d33)&&_0x402fc3('0x0')===typeof _0x1f3d33&&(_0x3fd8fa+='\x20'+_0x1f3d33);if(_0x3fd8fa!=='')return _0x3fd8fa;return _0x3ec349;}function Action(_0x3a6875,_0x59930a,_0x5877ff){const _0x5e1af7=_0x42feb4;this[_0x5e1af7('0x22')]=_0x3a6875,this[_0x5e1af7('0xa')]=_0x5877ff||undefined,this[_0x5e1af7('0x3')]=checkNameSurname(_0x59930a[_0x5e1af7('0xe')]['phone'],_0x59930a[_0x5e1af7('0xe')][_0x5e1af7('0x25')],_0x59930a[_0x5e1af7('0xe')][_0x5e1af7('0x5')]),this[_0x5e1af7('0x23')]=_0x59930a[_0x5e1af7('0xe')][_0x5e1af7('0x8')],this[_0x5e1af7('0x27')]=_0x3a6875[_0x5e1af7('0x3')],this[_0x5e1af7('0xc')]=_0x59930a[_0x5e1af7('0xc')]||![],this['type']=_0x3a6875[_0x5e1af7('0x19')],this[_0x5e1af7('0x26')]=_0x3a6875[_0x5e1af7('0x26')]||0x3,this[_0x5e1af7('0xf')]=_0x59930a[_0x5e1af7('0xf')],this[_0x5e1af7('0x1f')]=_0x59930a[_0x5e1af7('0x1f')],this[_0x5e1af7('0x9')]=_0x59930a[_0x5e1af7('0x9')],this[_0x5e1af7('0x15')]=_0x59930a['countnoanswerretry'],this[_0x5e1af7('0x7')]=_0x59930a[_0x5e1af7('0x7')],this[_0x5e1af7('0x13')]=_0x59930a['countdropretry'],this['countabandonedretry']=_0x59930a['countabandonedretry'],this[_0x5e1af7('0x21')]=_0x59930a[_0x5e1af7('0x21')],this['countagentrejectretry']=_0x59930a[_0x5e1af7('0x12')],this[_0x5e1af7('0x1b')]=_0x59930a[_0x5e1af7('0x1b')],this[_0x5e1af7('0x2')]=_0x59930a['ListId'],this[_0x5e1af7('0xd')]=_0x59930a[_0x5e1af7('0xd')],this['VoiceQueueId']=_0x59930a[_0x5e1af7('0x24')],this[_0x5e1af7('0xb')]=_0x59930a[_0x5e1af7('0xb')],this[_0x5e1af7('0x17')]=_0x59930a['id'],this[_0x5e1af7('0x20')]=_0x59930a[_0x5e1af7('0xe')][_0x5e1af7('0x25')]||'',this[_0x5e1af7('0x14')]=moment()[_0x5e1af7('0x28')](_0x5e1af7('0x18')),this['callback']=_0x59930a[_0x5e1af7('0x4')],this['callbackuniqueid']=_0x59930a[_0x5e1af7('0x11')],this[_0x5e1af7('0x1')]=_0x59930a[_0x5e1af7('0x1')],this[_0x5e1af7('0x1e')]=_0x59930a['recallme'],this['originatecalleridnum']='',this['originatecalleridname']='';}Action[_0x42feb4('0x1a')]['getCaller']=function(){const _0x5d0fb3=_0x42feb4;return util[_0x5d0fb3('0x28')]('\x22%s\x22\x20<%s>',this['name'],this[_0x5d0fb3('0x22')][_0x5d0fb3('0x1c')]>0x0?this['number']['substring'](this['voiceQueue']['dialCutDigit']):this['number']);},Action[_0x42feb4('0x1a')]['getQueue']=function(){return this['queue'];},module[_0x42feb4('0x16')]=Action;
\ No newline at end of file