Built motion from commit b0a9a629.|2.6.33
[motion2.git] / server / services / ami / dialer / models / action.js
index c0815e1..b3446df 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xe603=['getCaller','\x22%s\x22\x20<%s>','voiceQueue','dialCutDigit','getQueue','exports','util','lodash','moment','string','isNil','uniqueid','name','Contact','lastName','number','phone','active','type','dialQueueTimeout','scheduledat','countbusyretry','countcongestionretry','countnoanswerretry','countnosuchnumberretry','countdropretry','countabandonedretry','countmachineretry','ContactId','ListId','UserId','VoiceQueueId','CampaignId','idHopper','firstName','starttime','format','YYYY-MM-DD\x20HH:mm:ss','callback','callbackat','recallme','originatecalleridname','prototype'];(function(_0x126558,_0x143c9a){var _0x1f6d14=function(_0x2b0eea){while(--_0x2b0eea){_0x126558['push'](_0x126558['shift']());}};_0x1f6d14(++_0x143c9a);}(_0xe603,0x1b4));var _0x3e60=function(_0x4394ff,_0x2848a4){_0x4394ff=_0x4394ff-0x0;var _0x3b1ae0=_0xe603[_0x4394ff];return _0x3b1ae0;};'use strict';var util=require(_0x3e60('0x0'));var _=require(_0x3e60('0x1'));var moment=require(_0x3e60('0x2'));function checkNameSurname(_0x2cd599,_0x3c4f1b,_0x2e0546){var _0x1b0c69='';if(!_['isNil'](_0x3c4f1b)&&_0x3e60('0x3')===typeof _0x3c4f1b){_0x1b0c69+=_0x3c4f1b;}if(!_[_0x3e60('0x4')](_0x2e0546)&&'string'===typeof _0x2e0546){_0x1b0c69+='\x20'+_0x2e0546;}if(_0x1b0c69!==''){return _0x1b0c69;}return _0x2cd599;}function Action(_0x71997e,_0x2846f9,_0xe45ecc){this['voiceQueue']=_0x71997e;this[_0x3e60('0x5')]=_0xe45ecc||undefined;this[_0x3e60('0x6')]=checkNameSurname(_0x2846f9['Contact']['phone'],_0x2846f9[_0x3e60('0x7')]['firstName'],_0x2846f9[_0x3e60('0x7')][_0x3e60('0x8')]);this[_0x3e60('0x9')]=_0x2846f9[_0x3e60('0xa')];this['queue']=_0x71997e[_0x3e60('0x6')];this[_0x3e60('0xb')]=_0x2846f9[_0x3e60('0xb')]||![];this['type']=_0x71997e[_0x3e60('0xc')];this[_0x3e60('0xd')]=_0x71997e[_0x3e60('0xd')]||0x3;this[_0x3e60('0xe')]=_0x2846f9['scheduledat'];this[_0x3e60('0xf')]=_0x2846f9[_0x3e60('0xf')];this[_0x3e60('0x10')]=_0x2846f9['countcongestionretry'];this[_0x3e60('0x11')]=_0x2846f9[_0x3e60('0x11')];this[_0x3e60('0x12')]=_0x2846f9[_0x3e60('0x12')];this[_0x3e60('0x13')]=_0x2846f9[_0x3e60('0x13')];this[_0x3e60('0x14')]=_0x2846f9['countabandonedretry'];this[_0x3e60('0x15')]=_0x2846f9[_0x3e60('0x15')];this['countagentrejectretry']=_0x2846f9['countagentrejectretry'];this['ContactId']=_0x2846f9[_0x3e60('0x16')];this[_0x3e60('0x17')]=_0x2846f9['ListId'];this[_0x3e60('0x18')]=_0x2846f9['UserId'];this[_0x3e60('0x19')]=_0x2846f9['VoiceQueueId'];this[_0x3e60('0x1a')]=_0x2846f9[_0x3e60('0x1a')];this[_0x3e60('0x1b')]=_0x2846f9['id'];this['ContactFirstName']=_0x2846f9[_0x3e60('0x7')][_0x3e60('0x1c')]||'';this[_0x3e60('0x1d')]=moment()[_0x3e60('0x1e')](_0x3e60('0x1f'));this['callback']=_0x2846f9[_0x3e60('0x20')];this['callbackuniqueid']=_0x2846f9['callbackuniqueid'];this[_0x3e60('0x21')]=_0x2846f9[_0x3e60('0x21')];this[_0x3e60('0x22')]=_0x2846f9['recallme'];this['originatecalleridnum']='';this[_0x3e60('0x23')]='';}Action[_0x3e60('0x24')][_0x3e60('0x25')]=function(){return util['format'](_0x3e60('0x26'),this['name'],this['voiceQueue']['dialCutDigit']>0x0?this[_0x3e60('0x9')]['substring'](this[_0x3e60('0x27')][_0x3e60('0x28')]):this['number']);};Action['prototype'][_0x3e60('0x29')]=function(){return this['queue'];};module[_0x3e60('0x2a')]=Action;
\ No newline at end of file
+var _0x581a=['originatecalleridname','getCaller','format','substring','dialCutDigit','number','util','lodash','moment','isNil','voiceQueue','uniqueid','name','Contact','phone','firstName','lastName','queue','active','type','dialQueueTimeout','scheduledat','countbusyretry','countcongestionretry','countnoanswerretry','countnosuchnumberretry','countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','ContactId','ListId','UserId','VoiceQueueId','CampaignId','idHopper','starttime','YYYY-MM-DD\x20HH:mm:ss','callback','callbackuniqueid','recallme','originatecalleridnum'];(function(_0x594576,_0x1844f0){var _0xfdbabb=function(_0x1afe6d){while(--_0x1afe6d){_0x594576['push'](_0x594576['shift']());}};_0xfdbabb(++_0x1844f0);}(_0x581a,0x180));var _0xa581=function(_0x3c2f6f,_0x5acf4d){_0x3c2f6f=_0x3c2f6f-0x0;var _0xf18f48=_0x581a[_0x3c2f6f];return _0xf18f48;};'use strict';var util=require(_0xa581('0x0'));var _=require(_0xa581('0x1'));var moment=require(_0xa581('0x2'));function checkNameSurname(_0x1e6e13,_0xf5fce5,_0x572aa0){var _0x5241a9='';if(!_[_0xa581('0x3')](_0xf5fce5)&&'string'===typeof _0xf5fce5){_0x5241a9+=_0xf5fce5;}if(!_[_0xa581('0x3')](_0x572aa0)&&'string'===typeof _0x572aa0){_0x5241a9+='\x20'+_0x572aa0;}if(_0x5241a9!==''){return _0x5241a9;}return _0x1e6e13;}function Action(_0x2581bc,_0x4598bf,_0x2f6afa){this[_0xa581('0x4')]=_0x2581bc;this[_0xa581('0x5')]=_0x2f6afa||undefined;this[_0xa581('0x6')]=checkNameSurname(_0x4598bf[_0xa581('0x7')][_0xa581('0x8')],_0x4598bf[_0xa581('0x7')][_0xa581('0x9')],_0x4598bf[_0xa581('0x7')][_0xa581('0xa')]);this['number']=_0x4598bf['phone'];this[_0xa581('0xb')]=_0x2581bc[_0xa581('0x6')];this[_0xa581('0xc')]=_0x4598bf['active']||![];this[_0xa581('0xd')]=_0x2581bc[_0xa581('0xd')];this[_0xa581('0xe')]=_0x2581bc['dialQueueTimeout']||0x3;this[_0xa581('0xf')]=_0x4598bf[_0xa581('0xf')];this['countbusyretry']=_0x4598bf[_0xa581('0x10')];this[_0xa581('0x11')]=_0x4598bf[_0xa581('0x11')];this['countnoanswerretry']=_0x4598bf[_0xa581('0x12')];this[_0xa581('0x13')]=_0x4598bf[_0xa581('0x13')];this[_0xa581('0x14')]=_0x4598bf[_0xa581('0x14')];this[_0xa581('0x15')]=_0x4598bf['countabandonedretry'];this[_0xa581('0x16')]=_0x4598bf[_0xa581('0x16')];this[_0xa581('0x17')]=_0x4598bf[_0xa581('0x17')];this[_0xa581('0x18')]=_0x4598bf[_0xa581('0x18')];this[_0xa581('0x19')]=_0x4598bf[_0xa581('0x19')];this[_0xa581('0x1a')]=_0x4598bf[_0xa581('0x1a')];this[_0xa581('0x1b')]=_0x4598bf['VoiceQueueId'];this[_0xa581('0x1c')]=_0x4598bf[_0xa581('0x1c')];this[_0xa581('0x1d')]=_0x4598bf['id'];this['ContactFirstName']=_0x4598bf['Contact'][_0xa581('0x9')]||'';this[_0xa581('0x1e')]=moment()['format'](_0xa581('0x1f'));this[_0xa581('0x20')]=_0x4598bf['callback'];this[_0xa581('0x21')]=_0x4598bf['callbackuniqueid'];this['callbackat']=_0x4598bf['callbackat'];this[_0xa581('0x22')]=_0x4598bf['recallme'];this[_0xa581('0x23')]='';this[_0xa581('0x24')]='';}Action['prototype'][_0xa581('0x25')]=function(){return util[_0xa581('0x26')]('\x22%s\x22\x20<%s>',this[_0xa581('0x6')],this['voiceQueue']['dialCutDigit']>0x0?this['number'][_0xa581('0x27')](this[_0xa581('0x4')][_0xa581('0x28')]):this[_0xa581('0x29')]);};Action['prototype']['getQueue']=function(){return this[_0xa581('0xb')];};module['exports']=Action;
\ No newline at end of file