Built motion from commit (unavailable).|2.6.0
[motion2.git] / server / services / ami / dialer / action.js
index 55cb3de..e8b0f31 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xee4f=['phone','queue','active','type','dialQueueTimeout','scheduledat','countbusyretry','countcongestionretry','countnoanswerretry','countnosuchnumberretry','countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','ContactId','ListId','UserId','VoiceQueueId','CampaignId','idHopper','ContactFirstName','starttime','format','YYYY-MM-DD\x20HH:mm:ss','callback','callbackuniqueid','callbackat','recallme','originatecalleridnum','originatecalleridname','prototype','getCaller','substring','voiceQueue','dialCutDigit','number','getQueue','exports','util','isNil','uniqueid','name','Contact','firstName','lastName'];(function(_0x4c6087,_0x45f9fb){var _0x84bc54=function(_0x37a020){while(--_0x37a020){_0x4c6087['push'](_0x4c6087['shift']());}};_0x84bc54(++_0x45f9fb);}(_0xee4f,0xad));var _0xfee4=function(_0xefd3bb,_0x191e55){_0xefd3bb=_0xefd3bb-0x0;var _0x4284d1=_0xee4f[_0xefd3bb];return _0x4284d1;};'use strict';var util=require(_0xfee4('0x0'));var _=require('lodash');var moment=require('moment');function checkNameSurname(_0x2afb7d,_0x41b170,_0xf1acd6){var _0x5a03c9='';if(!_[_0xfee4('0x1')](_0x41b170)&&'string'===typeof _0x41b170){_0x5a03c9+=_0x41b170;}if(!_[_0xfee4('0x1')](_0xf1acd6)&&'string'===typeof _0xf1acd6){_0x5a03c9+='\x20'+_0xf1acd6;}if(_0x5a03c9!==''){return _0x5a03c9;}return _0x2afb7d;}function Action(_0x4da9b6,_0x1c39b1,_0x498647){this['voiceQueue']=_0x4da9b6;this[_0xfee4('0x2')]=_0x498647||undefined;this[_0xfee4('0x3')]=checkNameSurname(_0x1c39b1[_0xfee4('0x4')]['phone'],_0x1c39b1['Contact'][_0xfee4('0x5')],_0x1c39b1[_0xfee4('0x4')][_0xfee4('0x6')]);this['number']=_0x1c39b1['Contact'][_0xfee4('0x7')];this[_0xfee4('0x8')]=_0x4da9b6[_0xfee4('0x3')];this['active']=_0x1c39b1[_0xfee4('0x9')]||![];this[_0xfee4('0xa')]=_0x4da9b6[_0xfee4('0xa')];this[_0xfee4('0xb')]=_0x4da9b6[_0xfee4('0xb')]||0x3;this[_0xfee4('0xc')]=_0x1c39b1[_0xfee4('0xc')];this['countbusyretry']=_0x1c39b1[_0xfee4('0xd')];this[_0xfee4('0xe')]=_0x1c39b1['countcongestionretry'];this[_0xfee4('0xf')]=_0x1c39b1[_0xfee4('0xf')];this[_0xfee4('0x10')]=_0x1c39b1[_0xfee4('0x10')];this[_0xfee4('0x11')]=_0x1c39b1[_0xfee4('0x11')];this[_0xfee4('0x12')]=_0x1c39b1['countabandonedretry'];this[_0xfee4('0x13')]=_0x1c39b1[_0xfee4('0x13')];this[_0xfee4('0x14')]=_0x1c39b1['countagentrejectretry'];this[_0xfee4('0x15')]=_0x1c39b1['ContactId'];this['ListId']=_0x1c39b1[_0xfee4('0x16')];this[_0xfee4('0x17')]=_0x1c39b1[_0xfee4('0x17')];this[_0xfee4('0x18')]=_0x1c39b1[_0xfee4('0x18')];this[_0xfee4('0x19')]=_0x1c39b1[_0xfee4('0x19')];this[_0xfee4('0x1a')]=_0x1c39b1['id'];this[_0xfee4('0x1b')]=_0x1c39b1['Contact'][_0xfee4('0x5')]||'';this[_0xfee4('0x1c')]=moment()[_0xfee4('0x1d')](_0xfee4('0x1e'));this[_0xfee4('0x1f')]=_0x1c39b1[_0xfee4('0x1f')];this['callbackuniqueid']=_0x1c39b1[_0xfee4('0x20')];this[_0xfee4('0x21')]=_0x1c39b1[_0xfee4('0x21')];this[_0xfee4('0x22')]=_0x1c39b1[_0xfee4('0x22')];this[_0xfee4('0x23')]='';this[_0xfee4('0x24')]='';}Action[_0xfee4('0x25')][_0xfee4('0x26')]=function(){return util[_0xfee4('0x1d')]('\x22%s\x22\x20<%s>',this['name'],this['voiceQueue']['dialCutDigit']>0x0?this['number'][_0xfee4('0x27')](this[_0xfee4('0x28')][_0xfee4('0x29')]):this[_0xfee4('0x2a')]);};Action[_0xfee4('0x25')][_0xfee4('0x2b')]=function(){return this[_0xfee4('0x8')];};module[_0xfee4('0x2c')]=Action;
\ No newline at end of file
+var _0xce31=['ListId','UserId','CampaignId','idHopper','ContactFirstName','starttime','format','YYYY-MM-DD\x20HH:mm:ss','callback','callbackuniqueid','callbackat','recallme','getCaller','\x22%s\x22\x20<%s>','dialCutDigit','getQueue','util','lodash','isNil','string','voiceQueue','uniqueid','name','Contact','phone','firstName','number','queue','active','type','dialQueueTimeout','scheduledat','countbusyretry','countcongestionretry','countnoanswerretry','countnosuchnumberretry','countdropretry','countmachineretry','ContactId'];(function(_0x19b3f9,_0xade753){var _0x18c3f6=function(_0x21439f){while(--_0x21439f){_0x19b3f9['push'](_0x19b3f9['shift']());}};_0x18c3f6(++_0xade753);}(_0xce31,0xd3));var _0x1ce3=function(_0x5b5695,_0x194f15){_0x5b5695=_0x5b5695-0x0;var _0x17fea2=_0xce31[_0x5b5695];return _0x17fea2;};'use strict';var util=require(_0x1ce3('0x0'));var _=require(_0x1ce3('0x1'));var moment=require('moment');function checkNameSurname(_0xb58f05,_0x4f40bb,_0x40845f){var _0x48b98e='';if(!_[_0x1ce3('0x2')](_0x4f40bb)&&_0x1ce3('0x3')===typeof _0x4f40bb){_0x48b98e+=_0x4f40bb;}if(!_[_0x1ce3('0x2')](_0x40845f)&&_0x1ce3('0x3')===typeof _0x40845f){_0x48b98e+='\x20'+_0x40845f;}if(_0x48b98e!==''){return _0x48b98e;}return _0xb58f05;}function Action(_0x3f4519,_0x19b899,_0x10d770){this[_0x1ce3('0x4')]=_0x3f4519;this[_0x1ce3('0x5')]=_0x10d770||undefined;this[_0x1ce3('0x6')]=checkNameSurname(_0x19b899[_0x1ce3('0x7')][_0x1ce3('0x8')],_0x19b899[_0x1ce3('0x7')][_0x1ce3('0x9')],_0x19b899[_0x1ce3('0x7')]['lastName']);this[_0x1ce3('0xa')]=_0x19b899['phone'];this[_0x1ce3('0xb')]=_0x3f4519[_0x1ce3('0x6')];this[_0x1ce3('0xc')]=_0x19b899[_0x1ce3('0xc')]||![];this[_0x1ce3('0xd')]=_0x3f4519[_0x1ce3('0xd')];this[_0x1ce3('0xe')]=_0x3f4519[_0x1ce3('0xe')]||0x3;this[_0x1ce3('0xf')]=_0x19b899['scheduledat'];this[_0x1ce3('0x10')]=_0x19b899['countbusyretry'];this[_0x1ce3('0x11')]=_0x19b899['countcongestionretry'];this[_0x1ce3('0x12')]=_0x19b899['countnoanswerretry'];this[_0x1ce3('0x13')]=_0x19b899['countnosuchnumberretry'];this['countdropretry']=_0x19b899[_0x1ce3('0x14')];this['countabandonedretry']=_0x19b899['countabandonedretry'];this[_0x1ce3('0x15')]=_0x19b899[_0x1ce3('0x15')];this['countagentrejectretry']=_0x19b899['countagentrejectretry'];this[_0x1ce3('0x16')]=_0x19b899[_0x1ce3('0x16')];this[_0x1ce3('0x17')]=_0x19b899[_0x1ce3('0x17')];this[_0x1ce3('0x18')]=_0x19b899[_0x1ce3('0x18')];this['VoiceQueueId']=_0x19b899['VoiceQueueId'];this['CampaignId']=_0x19b899[_0x1ce3('0x19')];this[_0x1ce3('0x1a')]=_0x19b899['id'];this[_0x1ce3('0x1b')]=_0x19b899[_0x1ce3('0x7')]['firstName']||'';this[_0x1ce3('0x1c')]=moment()[_0x1ce3('0x1d')](_0x1ce3('0x1e'));this[_0x1ce3('0x1f')]=_0x19b899[_0x1ce3('0x1f')];this[_0x1ce3('0x20')]=_0x19b899[_0x1ce3('0x20')];this[_0x1ce3('0x21')]=_0x19b899[_0x1ce3('0x21')];this[_0x1ce3('0x22')]=_0x19b899['recallme'];this['originatecalleridnum']='';this['originatecalleridname']='';}Action['prototype'][_0x1ce3('0x23')]=function(){return util['format'](_0x1ce3('0x24'),this['name'],this[_0x1ce3('0x4')]['dialCutDigit']>0x0?this[_0x1ce3('0xa')]['substring'](this['voiceQueue'][_0x1ce3('0x25')]):this['number']);};Action['prototype'][_0x1ce3('0x26')]=function(){return this[_0x1ce3('0xb')];};module['exports']=Action;
\ No newline at end of file