Built motion from commit 9d0783e6.|2.6.13
[motion2.git] / server / services / ami / dialer / models / action.js
index c55f132..d23dead 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x38bb=['voiceQueue','uniqueid','name','Contact','number','phone','active','type','dialQueueTimeout','countcongestionretry','countnoanswerretry','countnosuchnumberretry','countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','ContactId','ListId','UserId','VoiceQueueId','CampaignId','ContactFirstName','firstName','starttime','format','YYYY-MM-DD\x20HH:mm:ss','callback','callbackuniqueid','callbackat','recallme','originatecalleridname','prototype','getCaller','\x22%s\x22\x20<%s>','dialCutDigit','substring','getQueue','queue','exports','util','lodash','moment','isNil','string'];(function(_0x355a25,_0x9a3942){var _0x13f8df=function(_0x144aaa){while(--_0x144aaa){_0x355a25['push'](_0x355a25['shift']());}};_0x13f8df(++_0x9a3942);}(_0x38bb,0x1df));var _0xb38b=function(_0x58b639,_0x37941a){_0x58b639=_0x58b639-0x0;var _0x845316=_0x38bb[_0x58b639];return _0x845316;};'use strict';var util=require(_0xb38b('0x0'));var _=require(_0xb38b('0x1'));var moment=require(_0xb38b('0x2'));function checkNameSurname(_0x3d6c25,_0x49eee6,_0x55564e){var _0xf39afd='';if(!_[_0xb38b('0x3')](_0x49eee6)&&_0xb38b('0x4')===typeof _0x49eee6){_0xf39afd+=_0x49eee6;}if(!_['isNil'](_0x55564e)&&_0xb38b('0x4')===typeof _0x55564e){_0xf39afd+='\x20'+_0x55564e;}if(_0xf39afd!==''){return _0xf39afd;}return _0x3d6c25;}function Action(_0x2ad0b3,_0x283932,_0x4bb18f){this[_0xb38b('0x5')]=_0x2ad0b3;this[_0xb38b('0x6')]=_0x4bb18f||undefined;this[_0xb38b('0x7')]=checkNameSurname(_0x283932[_0xb38b('0x8')]['phone'],_0x283932[_0xb38b('0x8')]['firstName'],_0x283932[_0xb38b('0x8')]['lastName']);this[_0xb38b('0x9')]=_0x283932[_0xb38b('0xa')];this['queue']=_0x2ad0b3[_0xb38b('0x7')];this[_0xb38b('0xb')]=_0x283932[_0xb38b('0xb')]||![];this[_0xb38b('0xc')]=_0x2ad0b3[_0xb38b('0xc')];this[_0xb38b('0xd')]=_0x2ad0b3[_0xb38b('0xd')]||0x3;this['scheduledat']=_0x283932['scheduledat'];this['countbusyretry']=_0x283932['countbusyretry'];this[_0xb38b('0xe')]=_0x283932[_0xb38b('0xe')];this[_0xb38b('0xf')]=_0x283932[_0xb38b('0xf')];this[_0xb38b('0x10')]=_0x283932['countnosuchnumberretry'];this['countdropretry']=_0x283932[_0xb38b('0x11')];this[_0xb38b('0x12')]=_0x283932[_0xb38b('0x12')];this[_0xb38b('0x13')]=_0x283932[_0xb38b('0x13')];this[_0xb38b('0x14')]=_0x283932['countagentrejectretry'];this[_0xb38b('0x15')]=_0x283932['ContactId'];this[_0xb38b('0x16')]=_0x283932[_0xb38b('0x16')];this[_0xb38b('0x17')]=_0x283932['UserId'];this[_0xb38b('0x18')]=_0x283932[_0xb38b('0x18')];this[_0xb38b('0x19')]=_0x283932[_0xb38b('0x19')];this['idHopper']=_0x283932['id'];this[_0xb38b('0x1a')]=_0x283932[_0xb38b('0x8')][_0xb38b('0x1b')]||'';this[_0xb38b('0x1c')]=moment()[_0xb38b('0x1d')](_0xb38b('0x1e'));this[_0xb38b('0x1f')]=_0x283932[_0xb38b('0x1f')];this[_0xb38b('0x20')]=_0x283932[_0xb38b('0x20')];this['callbackat']=_0x283932[_0xb38b('0x21')];this[_0xb38b('0x22')]=_0x283932[_0xb38b('0x22')];this['originatecalleridnum']='';this[_0xb38b('0x23')]='';}Action[_0xb38b('0x24')][_0xb38b('0x25')]=function(){return util[_0xb38b('0x1d')](_0xb38b('0x26'),this[_0xb38b('0x7')],this[_0xb38b('0x5')][_0xb38b('0x27')]>0x0?this[_0xb38b('0x9')][_0xb38b('0x28')](this[_0xb38b('0x5')]['dialCutDigit']):this[_0xb38b('0x9')]);};Action[_0xb38b('0x24')][_0xb38b('0x29')]=function(){return this[_0xb38b('0x2a')];};module[_0xb38b('0x2b')]=Action;
\ No newline at end of file
+var _0xea34=['countagentrejectretry','ContactId','ListId','UserId','VoiceQueueId','CampaignId','ContactFirstName','format','callback','callbackat','recallme','originatecalleridnum','originatecalleridname','prototype','getCaller','\x22%s\x22\x20<%s>','dialCutDigit','substring','getQueue','queue','exports','util','lodash','moment','isNil','string','voiceQueue','name','phone','firstName','Contact','lastName','number','active','type','dialQueueTimeout','scheduledat','countbusyretry','countcongestionretry','countnosuchnumberretry','countdropretry','countabandonedretry','countmachineretry'];(function(_0x97aa5a,_0x1db1d9){var _0x544dee=function(_0x37f07d){while(--_0x37f07d){_0x97aa5a['push'](_0x97aa5a['shift']());}};_0x544dee(++_0x1db1d9);}(_0xea34,0x142));var _0x4ea3=function(_0x2be8c2,_0x14a4b5){_0x2be8c2=_0x2be8c2-0x0;var _0x97f531=_0xea34[_0x2be8c2];return _0x97f531;};'use strict';var util=require(_0x4ea3('0x0'));var _=require(_0x4ea3('0x1'));var moment=require(_0x4ea3('0x2'));function checkNameSurname(_0xb0a756,_0x1aad2e,_0x5042ad){var _0xc9968e='';if(!_[_0x4ea3('0x3')](_0x1aad2e)&&'string'===typeof _0x1aad2e){_0xc9968e+=_0x1aad2e;}if(!_['isNil'](_0x5042ad)&&_0x4ea3('0x4')===typeof _0x5042ad){_0xc9968e+='\x20'+_0x5042ad;}if(_0xc9968e!==''){return _0xc9968e;}return _0xb0a756;}function Action(_0x1cec15,_0x301745,_0x580e90){this[_0x4ea3('0x5')]=_0x1cec15;this['uniqueid']=_0x580e90||undefined;this[_0x4ea3('0x6')]=checkNameSurname(_0x301745['Contact'][_0x4ea3('0x7')],_0x301745['Contact'][_0x4ea3('0x8')],_0x301745[_0x4ea3('0x9')][_0x4ea3('0xa')]);this[_0x4ea3('0xb')]=_0x301745[_0x4ea3('0x7')];this['queue']=_0x1cec15[_0x4ea3('0x6')];this[_0x4ea3('0xc')]=_0x301745[_0x4ea3('0xc')]||![];this[_0x4ea3('0xd')]=_0x1cec15[_0x4ea3('0xd')];this['dialQueueTimeout']=_0x1cec15[_0x4ea3('0xe')]||0x3;this[_0x4ea3('0xf')]=_0x301745['scheduledat'];this['countbusyretry']=_0x301745[_0x4ea3('0x10')];this[_0x4ea3('0x11')]=_0x301745[_0x4ea3('0x11')];this['countnoanswerretry']=_0x301745['countnoanswerretry'];this[_0x4ea3('0x12')]=_0x301745[_0x4ea3('0x12')];this[_0x4ea3('0x13')]=_0x301745[_0x4ea3('0x13')];this[_0x4ea3('0x14')]=_0x301745[_0x4ea3('0x14')];this['countmachineretry']=_0x301745[_0x4ea3('0x15')];this[_0x4ea3('0x16')]=_0x301745[_0x4ea3('0x16')];this[_0x4ea3('0x17')]=_0x301745[_0x4ea3('0x17')];this[_0x4ea3('0x18')]=_0x301745[_0x4ea3('0x18')];this['UserId']=_0x301745[_0x4ea3('0x19')];this[_0x4ea3('0x1a')]=_0x301745[_0x4ea3('0x1a')];this[_0x4ea3('0x1b')]=_0x301745[_0x4ea3('0x1b')];this['idHopper']=_0x301745['id'];this[_0x4ea3('0x1c')]=_0x301745[_0x4ea3('0x9')]['firstName']||'';this['starttime']=moment()[_0x4ea3('0x1d')]('YYYY-MM-DD\x20HH:mm:ss');this[_0x4ea3('0x1e')]=_0x301745['callback'];this['callbackuniqueid']=_0x301745['callbackuniqueid'];this[_0x4ea3('0x1f')]=_0x301745['callbackat'];this[_0x4ea3('0x20')]=_0x301745[_0x4ea3('0x20')];this[_0x4ea3('0x21')]='';this[_0x4ea3('0x22')]='';}Action[_0x4ea3('0x23')][_0x4ea3('0x24')]=function(){return util[_0x4ea3('0x1d')](_0x4ea3('0x25'),this[_0x4ea3('0x6')],this[_0x4ea3('0x5')][_0x4ea3('0x26')]>0x0?this[_0x4ea3('0xb')][_0x4ea3('0x27')](this[_0x4ea3('0x5')][_0x4ea3('0x26')]):this[_0x4ea3('0xb')]);};Action[_0x4ea3('0x23')][_0x4ea3('0x28')]=function(){return this[_0x4ea3('0x29')];};module[_0x4ea3('0x2a')]=Action;
\ No newline at end of file