Built motion from commit 449495f6.|2.6.27
[motion2.git] / server / services / ami / dialer / models / action.js
index cf7f6e7..3ec1137 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x7486=['UserId','VoiceQueueId','CampaignId','idHopper','ContactFirstName','firstName','starttime','callback','callbackuniqueid','callbackat','recallme','originatecalleridnum','getCaller','format','\x22%s\x22\x20<%s>','voiceQueue','dialCutDigit','substring','prototype','exports','lodash','moment','isNil','string','uniqueid','name','Contact','lastName','number','phone','queue','active','type','dialQueueTimeout','scheduledat','countbusyretry','countcongestionretry','countnoanswerretry','countnosuchnumberretry','countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','ContactId','ListId'];(function(_0x316dab,_0x2261ba){var _0x11d71f=function(_0x321488){while(--_0x321488){_0x316dab['push'](_0x316dab['shift']());}};_0x11d71f(++_0x2261ba);}(_0x7486,0x1a9));var _0x6748=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x7486[_0x3dd15e];return _0x231fd0;};'use strict';var util=require('util');var _=require(_0x6748('0x0'));var moment=require(_0x6748('0x1'));function checkNameSurname(_0x1f5043,_0x28d5e8,_0x4c79c6){var _0x144cd3='';if(!_[_0x6748('0x2')](_0x28d5e8)&&_0x6748('0x3')===typeof _0x28d5e8){_0x144cd3+=_0x28d5e8;}if(!_[_0x6748('0x2')](_0x4c79c6)&&_0x6748('0x3')===typeof _0x4c79c6){_0x144cd3+='\x20'+_0x4c79c6;}if(_0x144cd3!==''){return _0x144cd3;}return _0x1f5043;}function Action(_0x1fec22,_0x4d75b5,_0x161950){this['voiceQueue']=_0x1fec22;this[_0x6748('0x4')]=_0x161950||undefined;this[_0x6748('0x5')]=checkNameSurname(_0x4d75b5[_0x6748('0x6')]['phone'],_0x4d75b5[_0x6748('0x6')]['firstName'],_0x4d75b5['Contact'][_0x6748('0x7')]);this[_0x6748('0x8')]=_0x4d75b5[_0x6748('0x9')];this[_0x6748('0xa')]=_0x1fec22[_0x6748('0x5')];this['active']=_0x4d75b5[_0x6748('0xb')]||![];this[_0x6748('0xc')]=_0x1fec22[_0x6748('0xc')];this[_0x6748('0xd')]=_0x1fec22[_0x6748('0xd')]||0x3;this[_0x6748('0xe')]=_0x4d75b5[_0x6748('0xe')];this[_0x6748('0xf')]=_0x4d75b5[_0x6748('0xf')];this[_0x6748('0x10')]=_0x4d75b5[_0x6748('0x10')];this[_0x6748('0x11')]=_0x4d75b5[_0x6748('0x11')];this[_0x6748('0x12')]=_0x4d75b5['countnosuchnumberretry'];this['countdropretry']=_0x4d75b5[_0x6748('0x13')];this['countabandonedretry']=_0x4d75b5[_0x6748('0x14')];this[_0x6748('0x15')]=_0x4d75b5[_0x6748('0x15')];this[_0x6748('0x16')]=_0x4d75b5[_0x6748('0x16')];this['ContactId']=_0x4d75b5[_0x6748('0x17')];this[_0x6748('0x18')]=_0x4d75b5['ListId'];this[_0x6748('0x19')]=_0x4d75b5[_0x6748('0x19')];this[_0x6748('0x1a')]=_0x4d75b5[_0x6748('0x1a')];this['CampaignId']=_0x4d75b5[_0x6748('0x1b')];this[_0x6748('0x1c')]=_0x4d75b5['id'];this[_0x6748('0x1d')]=_0x4d75b5[_0x6748('0x6')][_0x6748('0x1e')]||'';this[_0x6748('0x1f')]=moment()['format']('YYYY-MM-DD\x20HH:mm:ss');this[_0x6748('0x20')]=_0x4d75b5[_0x6748('0x20')];this[_0x6748('0x21')]=_0x4d75b5['callbackuniqueid'];this[_0x6748('0x22')]=_0x4d75b5[_0x6748('0x22')];this[_0x6748('0x23')]=_0x4d75b5['recallme'];this[_0x6748('0x24')]='';this['originatecalleridname']='';}Action['prototype'][_0x6748('0x25')]=function(){return util[_0x6748('0x26')](_0x6748('0x27'),this[_0x6748('0x5')],this[_0x6748('0x28')][_0x6748('0x29')]>0x0?this['number'][_0x6748('0x2a')](this[_0x6748('0x28')]['dialCutDigit']):this[_0x6748('0x8')]);};Action[_0x6748('0x2b')]['getQueue']=function(){return this[_0x6748('0xa')];};module[_0x6748('0x2c')]=Action;
\ No newline at end of file
+var _0x92a0=['recallme','originatecalleridnum','originatecalleridname','prototype','getCaller','format','substring','dialCutDigit','getQueue','exports','lodash','isNil','string','voiceQueue','uniqueid','name','Contact','firstName','lastName','number','phone','queue','active','type','dialQueueTimeout','scheduledat','countbusyretry','countcongestionretry','countnoanswerretry','countnosuchnumberretry','countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','ContactId','ListId','UserId','VoiceQueueId','idHopper','ContactFirstName','callback','callbackuniqueid'];(function(_0x384e65,_0x1944de){var _0x547015=function(_0x104f32){while(--_0x104f32){_0x384e65['push'](_0x384e65['shift']());}};_0x547015(++_0x1944de);}(_0x92a0,0x1d8));var _0x092a=function(_0x48f7cf,_0x4baa04){_0x48f7cf=_0x48f7cf-0x0;var _0xc201c0=_0x92a0[_0x48f7cf];return _0xc201c0;};'use strict';var util=require('util');var _=require(_0x092a('0x0'));var moment=require('moment');function checkNameSurname(_0x5f20f4,_0x17850f,_0x5ebd24){var _0x3d11fd='';if(!_[_0x092a('0x1')](_0x17850f)&&_0x092a('0x2')===typeof _0x17850f){_0x3d11fd+=_0x17850f;}if(!_['isNil'](_0x5ebd24)&&_0x092a('0x2')===typeof _0x5ebd24){_0x3d11fd+='\x20'+_0x5ebd24;}if(_0x3d11fd!==''){return _0x3d11fd;}return _0x5f20f4;}function Action(_0x13d59c,_0x3d324a,_0x50210b){this[_0x092a('0x3')]=_0x13d59c;this[_0x092a('0x4')]=_0x50210b||undefined;this[_0x092a('0x5')]=checkNameSurname(_0x3d324a['Contact']['phone'],_0x3d324a[_0x092a('0x6')][_0x092a('0x7')],_0x3d324a['Contact'][_0x092a('0x8')]);this[_0x092a('0x9')]=_0x3d324a[_0x092a('0xa')];this[_0x092a('0xb')]=_0x13d59c[_0x092a('0x5')];this[_0x092a('0xc')]=_0x3d324a[_0x092a('0xc')]||![];this[_0x092a('0xd')]=_0x13d59c[_0x092a('0xd')];this[_0x092a('0xe')]=_0x13d59c[_0x092a('0xe')]||0x3;this[_0x092a('0xf')]=_0x3d324a[_0x092a('0xf')];this[_0x092a('0x10')]=_0x3d324a['countbusyretry'];this['countcongestionretry']=_0x3d324a[_0x092a('0x11')];this['countnoanswerretry']=_0x3d324a[_0x092a('0x12')];this[_0x092a('0x13')]=_0x3d324a[_0x092a('0x13')];this[_0x092a('0x14')]=_0x3d324a[_0x092a('0x14')];this[_0x092a('0x15')]=_0x3d324a[_0x092a('0x15')];this[_0x092a('0x16')]=_0x3d324a[_0x092a('0x16')];this[_0x092a('0x17')]=_0x3d324a[_0x092a('0x17')];this[_0x092a('0x18')]=_0x3d324a[_0x092a('0x18')];this['ListId']=_0x3d324a[_0x092a('0x19')];this[_0x092a('0x1a')]=_0x3d324a[_0x092a('0x1a')];this[_0x092a('0x1b')]=_0x3d324a['VoiceQueueId'];this['CampaignId']=_0x3d324a['CampaignId'];this[_0x092a('0x1c')]=_0x3d324a['id'];this[_0x092a('0x1d')]=_0x3d324a[_0x092a('0x6')][_0x092a('0x7')]||'';this['starttime']=moment()['format']('YYYY-MM-DD\x20HH:mm:ss');this[_0x092a('0x1e')]=_0x3d324a[_0x092a('0x1e')];this[_0x092a('0x1f')]=_0x3d324a[_0x092a('0x1f')];this['callbackat']=_0x3d324a['callbackat'];this[_0x092a('0x20')]=_0x3d324a[_0x092a('0x20')];this[_0x092a('0x21')]='';this[_0x092a('0x22')]='';}Action[_0x092a('0x23')][_0x092a('0x24')]=function(){return util[_0x092a('0x25')]('\x22%s\x22\x20<%s>',this[_0x092a('0x5')],this[_0x092a('0x3')]['dialCutDigit']>0x0?this['number'][_0x092a('0x26')](this['voiceQueue'][_0x092a('0x27')]):this[_0x092a('0x9')]);};Action['prototype'][_0x092a('0x28')]=function(){return this['queue'];};module[_0x092a('0x29')]=Action;
\ No newline at end of file