Built motion from commit b517aaa2a6638133380e4d135c64a80893061362. Version 3.0.0...
[motion-next.git] / server / services / ami / dialer / action.js
index 81f2c51..6b92adf 100644 (file)
@@ -1 +1 @@
-const a1051_0x48c3=['idHopper','originatecalleridnum','YYYY-MM-DD\x20HH:mm:ss','ListId','countbusyretry','string','callback','dialQueueTimeout','uniqueid','scheduledat','exports','countdropretry','getQueue','lastName','phone','lodash','countcongestionretry','name','number','callbackat','UserId','firstName','callbackuniqueid','moment','countnoanswerretry','ContactFirstName','dialCutDigit','active','originatecalleridname','voiceQueue','Contact','countnosuchnumberretry','queue','countmachineretry','ContactId','countagentrejectretry','prototype','type','countabandonedretry','isNil','starttime','VoiceQueueId','recallme','\x22%s\x22\x20<%s>','util','getCaller'];(function(_0x44bb46,_0x48c3d7){const _0x409d73=function(_0x157a3b){while(--_0x157a3b){_0x44bb46['push'](_0x44bb46['shift']());}};_0x409d73(++_0x48c3d7);}(a1051_0x48c3,0xf3));const a1051_0x409d=function(_0x44bb46,_0x48c3d7){_0x44bb46=_0x44bb46-0x0;let _0x409d73=a1051_0x48c3[_0x44bb46];return _0x409d73;};const _0x312b61=a1051_0x409d;'use strict';const util=require(_0x312b61('0x1f')),_=require(_0x312b61('0x2')),moment=require(_0x312b61('0xa'));function checkNameSurname(_0x157a3b,_0x40ad09,_0xe5e99d){const _0x10bbc2=_0x312b61;let _0x3dd4b6='';!_[_0x10bbc2('0x1a')](_0x40ad09)&&_0x10bbc2('0x26')===typeof _0x40ad09&&(_0x3dd4b6+=_0x40ad09);!_[_0x10bbc2('0x1a')](_0xe5e99d)&&'string'===typeof _0xe5e99d&&(_0x3dd4b6+='\x20'+_0xe5e99d);if(_0x3dd4b6!=='')return _0x3dd4b6;return _0x157a3b;}function Action(_0x15a330,_0x32abc6,_0x4ba21b){const _0x4d9e81=_0x312b61;this[_0x4d9e81('0x10')]=_0x15a330,this[_0x4d9e81('0x29')]=_0x4ba21b||undefined,this[_0x4d9e81('0x4')]=checkNameSurname(_0x32abc6[_0x4d9e81('0x11')]['phone'],_0x32abc6['Contact'][_0x4d9e81('0x8')],_0x32abc6[_0x4d9e81('0x11')][_0x4d9e81('0x0')]),this[_0x4d9e81('0x5')]=_0x32abc6[_0x4d9e81('0x11')][_0x4d9e81('0x1')],this[_0x4d9e81('0x13')]=_0x15a330[_0x4d9e81('0x4')],this[_0x4d9e81('0xe')]=_0x32abc6[_0x4d9e81('0xe')]||![],this['type']=_0x15a330[_0x4d9e81('0x18')],this['dialQueueTimeout']=_0x15a330[_0x4d9e81('0x28')]||0x3,this['scheduledat']=_0x32abc6[_0x4d9e81('0x2a')],this[_0x4d9e81('0x25')]=_0x32abc6['countbusyretry'],this['countcongestionretry']=_0x32abc6[_0x4d9e81('0x3')],this['countnoanswerretry']=_0x32abc6[_0x4d9e81('0xb')],this[_0x4d9e81('0x12')]=_0x32abc6[_0x4d9e81('0x12')],this['countdropretry']=_0x32abc6[_0x4d9e81('0x2c')],this[_0x4d9e81('0x19')]=_0x32abc6[_0x4d9e81('0x19')],this[_0x4d9e81('0x14')]=_0x32abc6[_0x4d9e81('0x14')],this[_0x4d9e81('0x16')]=_0x32abc6['countagentrejectretry'],this[_0x4d9e81('0x15')]=_0x32abc6['ContactId'],this[_0x4d9e81('0x24')]=_0x32abc6[_0x4d9e81('0x24')],this[_0x4d9e81('0x7')]=_0x32abc6[_0x4d9e81('0x7')],this['VoiceQueueId']=_0x32abc6[_0x4d9e81('0x1c')],this['CampaignId']=_0x32abc6['CampaignId'],this[_0x4d9e81('0x21')]=_0x32abc6['id'],this[_0x4d9e81('0xc')]=_0x32abc6['Contact'][_0x4d9e81('0x8')]||'',this[_0x4d9e81('0x1b')]=moment()['format'](_0x4d9e81('0x23')),this[_0x4d9e81('0x27')]=_0x32abc6[_0x4d9e81('0x27')],this[_0x4d9e81('0x9')]=_0x32abc6[_0x4d9e81('0x9')],this['callbackat']=_0x32abc6[_0x4d9e81('0x6')],this['recallme']=_0x32abc6[_0x4d9e81('0x1d')],this[_0x4d9e81('0x22')]='',this[_0x4d9e81('0xf')]='';}Action[_0x312b61('0x17')][_0x312b61('0x20')]=function(){const _0x352888=_0x312b61;return util['format'](_0x352888('0x1e'),this[_0x352888('0x4')],this[_0x352888('0x10')][_0x352888('0xd')]>0x0?this['number']['substring'](this['voiceQueue'][_0x352888('0xd')]):this[_0x352888('0x5')]);},Action[_0x312b61('0x17')][_0x312b61('0x2d')]=function(){const _0x4fc9cf=_0x312b61;return this[_0x4fc9cf('0x13')];},module[_0x312b61('0x2b')]=Action;
\ No newline at end of file
+const a1051_0x42da=['type','prototype','countmachineretry','callbackat','countcongestionretry','exports','\x22%s\x22\x20<%s>','dialCutDigit','scheduledat','string','name','CampaignId','dialQueueTimeout','queue','starttime','callback','format','idHopper','substring','recallme','uniqueid','isNil','ListId','callbackuniqueid','number','util','getCaller','firstName','countbusyretry','phone','countabandonedretry','active','countagentrejectretry','ContactFirstName','countnoanswerretry','countdropretry','Contact','originatecalleridname','voiceQueue','ContactId','VoiceQueueId','countnosuchnumberretry'];(function(_0x570c6b,_0x42dad6){const _0xb3d593=function(_0x1eb77a){while(--_0x1eb77a){_0x570c6b['push'](_0x570c6b['shift']());}};_0xb3d593(++_0x42dad6);}(a1051_0x42da,0x128));const a1051_0xb3d5=function(_0x570c6b,_0x42dad6){_0x570c6b=_0x570c6b-0x0;let _0xb3d593=a1051_0x42da[_0x570c6b];return _0xb3d593;};const _0x4a35aa=a1051_0xb3d5;'use strict';const util=require(_0x4a35aa('0x17')),_=require('lodash'),moment=require('moment');function checkNameSurname(_0x1eb77a,_0x10a329,_0x4b0bfa){const _0x3253f4=_0x4a35aa;let _0x82fc39='';!_['isNil'](_0x10a329)&&_0x3253f4('0x7')===typeof _0x10a329&&(_0x82fc39+=_0x10a329);!_[_0x3253f4('0x13')](_0x4b0bfa)&&_0x3253f4('0x7')===typeof _0x4b0bfa&&(_0x82fc39+='\x20'+_0x4b0bfa);if(_0x82fc39!=='')return _0x82fc39;return _0x1eb77a;}function Action(_0xe9a91c,_0x43c296,_0x444714){const _0x3702b7=_0x4a35aa;this[_0x3702b7('0x24')]=_0xe9a91c,this[_0x3702b7('0x12')]=_0x444714||undefined,this[_0x3702b7('0x8')]=checkNameSurname(_0x43c296[_0x3702b7('0x22')][_0x3702b7('0x1b')],_0x43c296['Contact'][_0x3702b7('0x19')],_0x43c296['Contact']['lastName']),this[_0x3702b7('0x16')]=_0x43c296[_0x3702b7('0x22')]['phone'],this[_0x3702b7('0xb')]=_0xe9a91c[_0x3702b7('0x8')],this[_0x3702b7('0x1d')]=_0x43c296[_0x3702b7('0x1d')]||![],this[_0x3702b7('0x28')]=_0xe9a91c['type'],this[_0x3702b7('0xa')]=_0xe9a91c[_0x3702b7('0xa')]||0x3,this[_0x3702b7('0x6')]=_0x43c296['scheduledat'],this[_0x3702b7('0x1a')]=_0x43c296[_0x3702b7('0x1a')],this[_0x3702b7('0x2')]=_0x43c296[_0x3702b7('0x2')],this['countnoanswerretry']=_0x43c296[_0x3702b7('0x20')],this[_0x3702b7('0x27')]=_0x43c296[_0x3702b7('0x27')],this['countdropretry']=_0x43c296[_0x3702b7('0x21')],this[_0x3702b7('0x1c')]=_0x43c296[_0x3702b7('0x1c')],this['countmachineretry']=_0x43c296[_0x3702b7('0x0')],this[_0x3702b7('0x1e')]=_0x43c296[_0x3702b7('0x1e')],this['ContactId']=_0x43c296[_0x3702b7('0x25')],this[_0x3702b7('0x14')]=_0x43c296[_0x3702b7('0x14')],this['UserId']=_0x43c296['UserId'],this[_0x3702b7('0x26')]=_0x43c296['VoiceQueueId'],this[_0x3702b7('0x9')]=_0x43c296['CampaignId'],this[_0x3702b7('0xf')]=_0x43c296['id'],this[_0x3702b7('0x1f')]=_0x43c296['Contact'][_0x3702b7('0x19')]||'',this[_0x3702b7('0xc')]=moment()[_0x3702b7('0xe')]('YYYY-MM-DD\x20HH:mm:ss'),this[_0x3702b7('0xd')]=_0x43c296[_0x3702b7('0xd')],this[_0x3702b7('0x15')]=_0x43c296[_0x3702b7('0x15')],this[_0x3702b7('0x1')]=_0x43c296['callbackat'],this['recallme']=_0x43c296[_0x3702b7('0x11')],this['originatecalleridnum']='',this[_0x3702b7('0x23')]='';}Action[_0x4a35aa('0x29')][_0x4a35aa('0x18')]=function(){const _0x5a38e6=_0x4a35aa;return util[_0x5a38e6('0xe')](_0x5a38e6('0x4'),this[_0x5a38e6('0x8')],this[_0x5a38e6('0x24')][_0x5a38e6('0x5')]>0x0?this[_0x5a38e6('0x16')][_0x5a38e6('0x10')](this['voiceQueue'][_0x5a38e6('0x5')]):this['number']);},Action[_0x4a35aa('0x29')]['getQueue']=function(){const _0x2f2828=_0x4a35aa;return this[_0x2f2828('0xb')];},module[_0x4a35aa('0x3')]=Action;
\ No newline at end of file