Built motion from commit f25620e4.|2.6.30
[motion2.git] / server / services / ami / dialer / models / action.js
index 5058a37..c7e6964 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x08f8=['dialCutDigit','prototype','exports','isNil','string','voiceQueue','name','Contact','phone','lastName','number','queue','active','type','dialQueueTimeout','scheduledat','countcongestionretry','countnosuchnumberretry','countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','ListId','UserId','VoiceQueueId','CampaignId','idHopper','ContactFirstName','firstName','starttime','YYYY-MM-DD\x20HH:mm:ss','callback','callbackuniqueid','callbackat','recallme','originatecalleridname','getCaller','\x22%s\x22\x20<%s>','substring'];(function(_0xe43ade,_0x43f1a3){var _0x956560=function(_0x46ae95){while(--_0x46ae95){_0xe43ade['push'](_0xe43ade['shift']());}};_0x956560(++_0x43f1a3);}(_0x08f8,0x13b));var _0x808f=function(_0x4ba770,_0x42ba83){_0x4ba770=_0x4ba770-0x0;var _0x4a6b45=_0x08f8[_0x4ba770];return _0x4a6b45;};'use strict';var util=require('util');var _=require('lodash');var moment=require('moment');function checkNameSurname(_0x194795,_0x40a69b,_0x592c49){var _0x14a9f3='';if(!_[_0x808f('0x0')](_0x40a69b)&&_0x808f('0x1')===typeof _0x40a69b){_0x14a9f3+=_0x40a69b;}if(!_[_0x808f('0x0')](_0x592c49)&&_0x808f('0x1')===typeof _0x592c49){_0x14a9f3+='\x20'+_0x592c49;}if(_0x14a9f3!==''){return _0x14a9f3;}return _0x194795;}function Action(_0x40e55d,_0x1d5f8a,_0x1e9b83){this[_0x808f('0x2')]=_0x40e55d;this['uniqueid']=_0x1e9b83||undefined;this[_0x808f('0x3')]=checkNameSurname(_0x1d5f8a[_0x808f('0x4')][_0x808f('0x5')],_0x1d5f8a[_0x808f('0x4')]['firstName'],_0x1d5f8a['Contact'][_0x808f('0x6')]);this[_0x808f('0x7')]=_0x1d5f8a[_0x808f('0x5')];this[_0x808f('0x8')]=_0x40e55d[_0x808f('0x3')];this[_0x808f('0x9')]=_0x1d5f8a[_0x808f('0x9')]||![];this['type']=_0x40e55d[_0x808f('0xa')];this['dialQueueTimeout']=_0x40e55d[_0x808f('0xb')]||0x3;this[_0x808f('0xc')]=_0x1d5f8a[_0x808f('0xc')];this['countbusyretry']=_0x1d5f8a['countbusyretry'];this['countcongestionretry']=_0x1d5f8a[_0x808f('0xd')];this['countnoanswerretry']=_0x1d5f8a['countnoanswerretry'];this[_0x808f('0xe')]=_0x1d5f8a[_0x808f('0xe')];this['countdropretry']=_0x1d5f8a[_0x808f('0xf')];this[_0x808f('0x10')]=_0x1d5f8a[_0x808f('0x10')];this['countmachineretry']=_0x1d5f8a[_0x808f('0x11')];this[_0x808f('0x12')]=_0x1d5f8a['countagentrejectretry'];this['ContactId']=_0x1d5f8a['ContactId'];this[_0x808f('0x13')]=_0x1d5f8a[_0x808f('0x13')];this[_0x808f('0x14')]=_0x1d5f8a[_0x808f('0x14')];this[_0x808f('0x15')]=_0x1d5f8a[_0x808f('0x15')];this[_0x808f('0x16')]=_0x1d5f8a[_0x808f('0x16')];this[_0x808f('0x17')]=_0x1d5f8a['id'];this[_0x808f('0x18')]=_0x1d5f8a['Contact'][_0x808f('0x19')]||'';this[_0x808f('0x1a')]=moment()['format'](_0x808f('0x1b'));this['callback']=_0x1d5f8a[_0x808f('0x1c')];this[_0x808f('0x1d')]=_0x1d5f8a[_0x808f('0x1d')];this['callbackat']=_0x1d5f8a[_0x808f('0x1e')];this[_0x808f('0x1f')]=_0x1d5f8a[_0x808f('0x1f')];this['originatecalleridnum']='';this[_0x808f('0x20')]='';}Action['prototype'][_0x808f('0x21')]=function(){return util['format'](_0x808f('0x22'),this[_0x808f('0x3')],this['voiceQueue']['dialCutDigit']>0x0?this[_0x808f('0x7')][_0x808f('0x23')](this[_0x808f('0x2')][_0x808f('0x24')]):this['number']);};Action[_0x808f('0x25')]['getQueue']=function(){return this[_0x808f('0x8')];};module[_0x808f('0x26')]=Action;
\ No newline at end of file
+var _0x1976=['callback','callbackuniqueid','callbackat','recallme','originatecalleridnum','originatecalleridname','prototype','getCaller','number','substring','voiceQueue','getQueue','exports','util','moment','isNil','string','uniqueid','Contact','phone','firstName','lastName','queue','name','active','type','dialQueueTimeout','scheduledat','countbusyretry','countcongestionretry','countnoanswerretry','countnosuchnumberretry','countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','ContactId','ListId','UserId','VoiceQueueId','CampaignId','idHopper','starttime','format','YYYY-MM-DD\x20HH:mm:ss'];(function(_0x54daf5,_0x528643){var _0xf70158=function(_0x4902d6){while(--_0x4902d6){_0x54daf5['push'](_0x54daf5['shift']());}};_0xf70158(++_0x528643);}(_0x1976,0x148));var _0x6197=function(_0x4ed539,_0x1f6517){_0x4ed539=_0x4ed539-0x0;var _0x4ba358=_0x1976[_0x4ed539];return _0x4ba358;};'use strict';var util=require(_0x6197('0x0'));var _=require('lodash');var moment=require(_0x6197('0x1'));function checkNameSurname(_0x1a38a6,_0x19cfc6,_0x5a960e){var _0x569bd8='';if(!_[_0x6197('0x2')](_0x19cfc6)&&_0x6197('0x3')===typeof _0x19cfc6){_0x569bd8+=_0x19cfc6;}if(!_[_0x6197('0x2')](_0x5a960e)&&'string'===typeof _0x5a960e){_0x569bd8+='\x20'+_0x5a960e;}if(_0x569bd8!==''){return _0x569bd8;}return _0x1a38a6;}function Action(_0x506162,_0x33c7d1,_0x3bc251){this['voiceQueue']=_0x506162;this[_0x6197('0x4')]=_0x3bc251||undefined;this['name']=checkNameSurname(_0x33c7d1[_0x6197('0x5')][_0x6197('0x6')],_0x33c7d1[_0x6197('0x5')][_0x6197('0x7')],_0x33c7d1['Contact'][_0x6197('0x8')]);this['number']=_0x33c7d1[_0x6197('0x6')];this[_0x6197('0x9')]=_0x506162[_0x6197('0xa')];this['active']=_0x33c7d1[_0x6197('0xb')]||![];this[_0x6197('0xc')]=_0x506162[_0x6197('0xc')];this[_0x6197('0xd')]=_0x506162[_0x6197('0xd')]||0x3;this[_0x6197('0xe')]=_0x33c7d1[_0x6197('0xe')];this[_0x6197('0xf')]=_0x33c7d1[_0x6197('0xf')];this[_0x6197('0x10')]=_0x33c7d1['countcongestionretry'];this['countnoanswerretry']=_0x33c7d1[_0x6197('0x11')];this[_0x6197('0x12')]=_0x33c7d1[_0x6197('0x12')];this[_0x6197('0x13')]=_0x33c7d1[_0x6197('0x13')];this[_0x6197('0x14')]=_0x33c7d1[_0x6197('0x14')];this[_0x6197('0x15')]=_0x33c7d1[_0x6197('0x15')];this[_0x6197('0x16')]=_0x33c7d1[_0x6197('0x16')];this['ContactId']=_0x33c7d1[_0x6197('0x17')];this[_0x6197('0x18')]=_0x33c7d1['ListId'];this[_0x6197('0x19')]=_0x33c7d1[_0x6197('0x19')];this[_0x6197('0x1a')]=_0x33c7d1['VoiceQueueId'];this[_0x6197('0x1b')]=_0x33c7d1[_0x6197('0x1b')];this[_0x6197('0x1c')]=_0x33c7d1['id'];this['ContactFirstName']=_0x33c7d1[_0x6197('0x5')]['firstName']||'';this[_0x6197('0x1d')]=moment()[_0x6197('0x1e')](_0x6197('0x1f'));this[_0x6197('0x20')]=_0x33c7d1[_0x6197('0x20')];this[_0x6197('0x21')]=_0x33c7d1[_0x6197('0x21')];this[_0x6197('0x22')]=_0x33c7d1[_0x6197('0x22')];this[_0x6197('0x23')]=_0x33c7d1[_0x6197('0x23')];this[_0x6197('0x24')]='';this[_0x6197('0x25')]='';}Action[_0x6197('0x26')][_0x6197('0x27')]=function(){return util[_0x6197('0x1e')]('\x22%s\x22\x20<%s>',this['name'],this['voiceQueue']['dialCutDigit']>0x0?this[_0x6197('0x28')][_0x6197('0x29')](this[_0x6197('0x2a')]['dialCutDigit']):this[_0x6197('0x28')]);};Action[_0x6197('0x26')][_0x6197('0x2b')]=function(){return this[_0x6197('0x9')];};module[_0x6197('0x2c')]=Action;
\ No newline at end of file