Built motion from commit 0bd120ac.|2.6.25
[motion2.git] / server / services / ami / dialer / models / action.js
index c9a2125..bdc995a 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x7b48=['firstName','phone','queue','name','active','type','dialQueueTimeout','scheduledat','countbusyretry','countcongestionretry','countnoanswerretry','countnosuchnumberretry','countdropretry','countabandonedretry','countagentrejectretry','ContactId','ListId','UserId','VoiceQueueId','CampaignId','idHopper','starttime','format','YYYY-MM-DD\x20HH:mm:ss','callback','callbackuniqueid','callbackat','recallme','originatecalleridnum','originatecalleridname','prototype','getCaller','dialCutDigit','number','substring','util','lodash','moment','isNil','voiceQueue','Contact'];(function(_0x487b00,_0x25186c){var _0x3b9ecb=function(_0x1a6bdb){while(--_0x1a6bdb){_0x487b00['push'](_0x487b00['shift']());}};_0x3b9ecb(++_0x25186c);}(_0x7b48,0xc7));var _0x87b4=function(_0x5b8155,_0x51c636){_0x5b8155=_0x5b8155-0x0;var _0x1d6f07=_0x7b48[_0x5b8155];return _0x1d6f07;};'use strict';var util=require(_0x87b4('0x0'));var _=require(_0x87b4('0x1'));var moment=require(_0x87b4('0x2'));function checkNameSurname(_0x368dca,_0x4c7ec3,_0xd03fb9){var _0x2832a7='';if(!_[_0x87b4('0x3')](_0x4c7ec3)&&'string'===typeof _0x4c7ec3){_0x2832a7+=_0x4c7ec3;}if(!_[_0x87b4('0x3')](_0xd03fb9)&&'string'===typeof _0xd03fb9){_0x2832a7+='\x20'+_0xd03fb9;}if(_0x2832a7!==''){return _0x2832a7;}return _0x368dca;}function Action(_0x540eda,_0x274b2f,_0x1b4f45){this[_0x87b4('0x4')]=_0x540eda;this['uniqueid']=_0x1b4f45||undefined;this['name']=checkNameSurname(_0x274b2f['Contact']['phone'],_0x274b2f[_0x87b4('0x5')][_0x87b4('0x6')],_0x274b2f['Contact']['lastName']);this['number']=_0x274b2f[_0x87b4('0x7')];this[_0x87b4('0x8')]=_0x540eda[_0x87b4('0x9')];this[_0x87b4('0xa')]=_0x274b2f['active']||![];this[_0x87b4('0xb')]=_0x540eda['type'];this['dialQueueTimeout']=_0x540eda[_0x87b4('0xc')]||0x3;this[_0x87b4('0xd')]=_0x274b2f[_0x87b4('0xd')];this[_0x87b4('0xe')]=_0x274b2f[_0x87b4('0xe')];this['countcongestionretry']=_0x274b2f[_0x87b4('0xf')];this['countnoanswerretry']=_0x274b2f[_0x87b4('0x10')];this[_0x87b4('0x11')]=_0x274b2f[_0x87b4('0x11')];this[_0x87b4('0x12')]=_0x274b2f[_0x87b4('0x12')];this[_0x87b4('0x13')]=_0x274b2f[_0x87b4('0x13')];this['countmachineretry']=_0x274b2f['countmachineretry'];this[_0x87b4('0x14')]=_0x274b2f[_0x87b4('0x14')];this[_0x87b4('0x15')]=_0x274b2f[_0x87b4('0x15')];this[_0x87b4('0x16')]=_0x274b2f[_0x87b4('0x16')];this[_0x87b4('0x17')]=_0x274b2f[_0x87b4('0x17')];this[_0x87b4('0x18')]=_0x274b2f[_0x87b4('0x18')];this['CampaignId']=_0x274b2f[_0x87b4('0x19')];this[_0x87b4('0x1a')]=_0x274b2f['id'];this['ContactFirstName']=_0x274b2f['Contact'][_0x87b4('0x6')]||'';this[_0x87b4('0x1b')]=moment()[_0x87b4('0x1c')](_0x87b4('0x1d'));this['callback']=_0x274b2f[_0x87b4('0x1e')];this['callbackuniqueid']=_0x274b2f[_0x87b4('0x1f')];this[_0x87b4('0x20')]=_0x274b2f[_0x87b4('0x20')];this[_0x87b4('0x21')]=_0x274b2f[_0x87b4('0x21')];this[_0x87b4('0x22')]='';this[_0x87b4('0x23')]='';}Action[_0x87b4('0x24')][_0x87b4('0x25')]=function(){return util[_0x87b4('0x1c')]('\x22%s\x22\x20<%s>',this[_0x87b4('0x9')],this[_0x87b4('0x4')][_0x87b4('0x26')]>0x0?this[_0x87b4('0x27')][_0x87b4('0x28')](this['voiceQueue'][_0x87b4('0x26')]):this['number']);};Action['prototype']['getQueue']=function(){return this[_0x87b4('0x8')];};module['exports']=Action;
\ No newline at end of file
+var _0xaed3=['countnosuchnumberretry','countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','ContactId','ListId','CampaignId','idHopper','starttime','format','YYYY-MM-DD\x20HH:mm:ss','callback','callbackat','recallme','originatecalleridnum','originatecalleridname','prototype','substring','dialCutDigit','getQueue','util','moment','string','voiceQueue','name','phone','Contact','firstName','number','queue','active','type','dialQueueTimeout','scheduledat','countbusyretry','countcongestionretry','countnoanswerretry'];(function(_0x3e8cae,_0x4cb96a){var _0x45c4d6=function(_0x4bf3a5){while(--_0x4bf3a5){_0x3e8cae['push'](_0x3e8cae['shift']());}};_0x45c4d6(++_0x4cb96a);}(_0xaed3,0x145));var _0x3aed=function(_0x408e38,_0x23cda8){_0x408e38=_0x408e38-0x0;var _0x426b0e=_0xaed3[_0x408e38];return _0x426b0e;};'use strict';var util=require(_0x3aed('0x0'));var _=require('lodash');var moment=require(_0x3aed('0x1'));function checkNameSurname(_0x378a9a,_0x39043a,_0x1ba65d){var _0x10f018='';if(!_['isNil'](_0x39043a)&&_0x3aed('0x2')===typeof _0x39043a){_0x10f018+=_0x39043a;}if(!_['isNil'](_0x1ba65d)&&'string'===typeof _0x1ba65d){_0x10f018+='\x20'+_0x1ba65d;}if(_0x10f018!==''){return _0x10f018;}return _0x378a9a;}function Action(_0x2bb639,_0x1628d8,_0x555f42){this[_0x3aed('0x3')]=_0x2bb639;this['uniqueid']=_0x555f42||undefined;this[_0x3aed('0x4')]=checkNameSurname(_0x1628d8['Contact'][_0x3aed('0x5')],_0x1628d8[_0x3aed('0x6')][_0x3aed('0x7')],_0x1628d8[_0x3aed('0x6')]['lastName']);this[_0x3aed('0x8')]=_0x1628d8['phone'];this[_0x3aed('0x9')]=_0x2bb639[_0x3aed('0x4')];this[_0x3aed('0xa')]=_0x1628d8['active']||![];this[_0x3aed('0xb')]=_0x2bb639[_0x3aed('0xb')];this[_0x3aed('0xc')]=_0x2bb639[_0x3aed('0xc')]||0x3;this[_0x3aed('0xd')]=_0x1628d8['scheduledat'];this[_0x3aed('0xe')]=_0x1628d8[_0x3aed('0xe')];this[_0x3aed('0xf')]=_0x1628d8['countcongestionretry'];this[_0x3aed('0x10')]=_0x1628d8['countnoanswerretry'];this['countnosuchnumberretry']=_0x1628d8[_0x3aed('0x11')];this[_0x3aed('0x12')]=_0x1628d8[_0x3aed('0x12')];this['countabandonedretry']=_0x1628d8[_0x3aed('0x13')];this[_0x3aed('0x14')]=_0x1628d8[_0x3aed('0x14')];this['countagentrejectretry']=_0x1628d8[_0x3aed('0x15')];this[_0x3aed('0x16')]=_0x1628d8[_0x3aed('0x16')];this[_0x3aed('0x17')]=_0x1628d8[_0x3aed('0x17')];this['UserId']=_0x1628d8['UserId'];this['VoiceQueueId']=_0x1628d8['VoiceQueueId'];this[_0x3aed('0x18')]=_0x1628d8[_0x3aed('0x18')];this[_0x3aed('0x19')]=_0x1628d8['id'];this['ContactFirstName']=_0x1628d8['Contact'][_0x3aed('0x7')]||'';this[_0x3aed('0x1a')]=moment()[_0x3aed('0x1b')](_0x3aed('0x1c'));this['callback']=_0x1628d8[_0x3aed('0x1d')];this['callbackuniqueid']=_0x1628d8['callbackuniqueid'];this[_0x3aed('0x1e')]=_0x1628d8[_0x3aed('0x1e')];this[_0x3aed('0x1f')]=_0x1628d8['recallme'];this[_0x3aed('0x20')]='';this[_0x3aed('0x21')]='';}Action[_0x3aed('0x22')]['getCaller']=function(){return util[_0x3aed('0x1b')]('\x22%s\x22\x20<%s>',this[_0x3aed('0x4')],this[_0x3aed('0x3')]['dialCutDigit']>0x0?this[_0x3aed('0x8')][_0x3aed('0x23')](this['voiceQueue'][_0x3aed('0x24')]):this['number']);};Action[_0x3aed('0x22')][_0x3aed('0x25')]=function(){return this[_0x3aed('0x9')];};module['exports']=Action;
\ No newline at end of file