Built motion from commit 953226e6.|2.6.32
[motion2.git] / server / services / ami / dialer / models / action.js
index 9f0e722..c0815e1 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x80fc=['countmachineretry','ContactId','ListId','UserId','VoiceQueueId','CampaignId','ContactFirstName','starttime','callback','callbackuniqueid','callbackat','recallme','originatecalleridnum','originatecalleridname','prototype','getCaller','substring','dialCutDigit','getQueue','exports','lodash','moment','isNil','string','voiceQueue','uniqueid','Contact','firstName','lastName','number','phone','queue','name','active','type','dialQueueTimeout','scheduledat','countbusyretry','countcongestionretry','countnoanswerretry','countnosuchnumberretry','countdropretry','countabandonedretry'];(function(_0x2dadb9,_0x42cfe6){var _0x2f0097=function(_0x21163f){while(--_0x21163f){_0x2dadb9['push'](_0x2dadb9['shift']());}};_0x2f0097(++_0x42cfe6);}(_0x80fc,0x197));var _0xc80f=function(_0x25e358,_0x183b2f){_0x25e358=_0x25e358-0x0;var _0x3c1c66=_0x80fc[_0x25e358];return _0x3c1c66;};'use strict';var util=require('util');var _=require(_0xc80f('0x0'));var moment=require(_0xc80f('0x1'));function checkNameSurname(_0x47434b,_0x2c8b06,_0x581cf9){var _0x134ad1='';if(!_[_0xc80f('0x2')](_0x2c8b06)&&_0xc80f('0x3')===typeof _0x2c8b06){_0x134ad1+=_0x2c8b06;}if(!_[_0xc80f('0x2')](_0x581cf9)&&'string'===typeof _0x581cf9){_0x134ad1+='\x20'+_0x581cf9;}if(_0x134ad1!==''){return _0x134ad1;}return _0x47434b;}function Action(_0xd8de61,_0x27aa2f,_0x2e2a42){this[_0xc80f('0x4')]=_0xd8de61;this[_0xc80f('0x5')]=_0x2e2a42||undefined;this['name']=checkNameSurname(_0x27aa2f[_0xc80f('0x6')]['phone'],_0x27aa2f['Contact'][_0xc80f('0x7')],_0x27aa2f['Contact'][_0xc80f('0x8')]);this[_0xc80f('0x9')]=_0x27aa2f[_0xc80f('0xa')];this[_0xc80f('0xb')]=_0xd8de61[_0xc80f('0xc')];this[_0xc80f('0xd')]=_0x27aa2f[_0xc80f('0xd')]||![];this[_0xc80f('0xe')]=_0xd8de61[_0xc80f('0xe')];this['dialQueueTimeout']=_0xd8de61[_0xc80f('0xf')]||0x3;this[_0xc80f('0x10')]=_0x27aa2f[_0xc80f('0x10')];this[_0xc80f('0x11')]=_0x27aa2f[_0xc80f('0x11')];this[_0xc80f('0x12')]=_0x27aa2f['countcongestionretry'];this[_0xc80f('0x13')]=_0x27aa2f[_0xc80f('0x13')];this[_0xc80f('0x14')]=_0x27aa2f[_0xc80f('0x14')];this[_0xc80f('0x15')]=_0x27aa2f[_0xc80f('0x15')];this['countabandonedretry']=_0x27aa2f[_0xc80f('0x16')];this[_0xc80f('0x17')]=_0x27aa2f[_0xc80f('0x17')];this['countagentrejectretry']=_0x27aa2f['countagentrejectretry'];this[_0xc80f('0x18')]=_0x27aa2f[_0xc80f('0x18')];this[_0xc80f('0x19')]=_0x27aa2f[_0xc80f('0x19')];this[_0xc80f('0x1a')]=_0x27aa2f['UserId'];this[_0xc80f('0x1b')]=_0x27aa2f[_0xc80f('0x1b')];this[_0xc80f('0x1c')]=_0x27aa2f[_0xc80f('0x1c')];this['idHopper']=_0x27aa2f['id'];this[_0xc80f('0x1d')]=_0x27aa2f[_0xc80f('0x6')][_0xc80f('0x7')]||'';this[_0xc80f('0x1e')]=moment()['format']('YYYY-MM-DD\x20HH:mm:ss');this[_0xc80f('0x1f')]=_0x27aa2f[_0xc80f('0x1f')];this[_0xc80f('0x20')]=_0x27aa2f[_0xc80f('0x20')];this['callbackat']=_0x27aa2f[_0xc80f('0x21')];this[_0xc80f('0x22')]=_0x27aa2f[_0xc80f('0x22')];this[_0xc80f('0x23')]='';this[_0xc80f('0x24')]='';}Action[_0xc80f('0x25')][_0xc80f('0x26')]=function(){return util['format']('\x22%s\x22\x20<%s>',this[_0xc80f('0xc')],this[_0xc80f('0x4')]['dialCutDigit']>0x0?this['number'][_0xc80f('0x27')](this[_0xc80f('0x4')][_0xc80f('0x28')]):this[_0xc80f('0x9')]);};Action['prototype'][_0xc80f('0x29')]=function(){return this['queue'];};module[_0xc80f('0x2a')]=Action;
\ No newline at end of file
+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