Built motion from commit 10af8726.|2.6.34
[motion2.git] / server / services / ami / dialer / models / action.js
index c0815e1..ab0c8da 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-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
+var _0x1496=['lastName','number','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','prototype','getCaller','\x22%s\x22\x20<%s>','dialCutDigit','substring','getQueue','exports','util','lodash','moment','string','isNil','voiceQueue','uniqueid','name','Contact','phone','firstName'];(function(_0x5a1cf3,_0x161eca){var _0x24d3cc=function(_0x41a79e){while(--_0x41a79e){_0x5a1cf3['push'](_0x5a1cf3['shift']());}};_0x24d3cc(++_0x161eca);}(_0x1496,0x175));var _0x6149=function(_0xd61222,_0x417e58){_0xd61222=_0xd61222-0x0;var _0x6c56db=_0x1496[_0xd61222];return _0x6c56db;};'use strict';var util=require(_0x6149('0x0'));var _=require(_0x6149('0x1'));var moment=require(_0x6149('0x2'));function checkNameSurname(_0x27b3ae,_0x210968,_0x457a5e){var _0x573106='';if(!_['isNil'](_0x210968)&&_0x6149('0x3')===typeof _0x210968){_0x573106+=_0x210968;}if(!_[_0x6149('0x4')](_0x457a5e)&&_0x6149('0x3')===typeof _0x457a5e){_0x573106+='\x20'+_0x457a5e;}if(_0x573106!==''){return _0x573106;}return _0x27b3ae;}function Action(_0x1b145d,_0x186d6f,_0x38c68d){this[_0x6149('0x5')]=_0x1b145d;this[_0x6149('0x6')]=_0x38c68d||undefined;this[_0x6149('0x7')]=checkNameSurname(_0x186d6f[_0x6149('0x8')][_0x6149('0x9')],_0x186d6f[_0x6149('0x8')][_0x6149('0xa')],_0x186d6f[_0x6149('0x8')][_0x6149('0xb')]);this[_0x6149('0xc')]=_0x186d6f[_0x6149('0x9')];this[_0x6149('0xd')]=_0x1b145d['name'];this[_0x6149('0xe')]=_0x186d6f['active']||![];this[_0x6149('0xf')]=_0x1b145d[_0x6149('0xf')];this[_0x6149('0x10')]=_0x1b145d[_0x6149('0x10')]||0x3;this['scheduledat']=_0x186d6f[_0x6149('0x11')];this[_0x6149('0x12')]=_0x186d6f[_0x6149('0x12')];this[_0x6149('0x13')]=_0x186d6f[_0x6149('0x13')];this[_0x6149('0x14')]=_0x186d6f[_0x6149('0x14')];this[_0x6149('0x15')]=_0x186d6f['countnosuchnumberretry'];this['countdropretry']=_0x186d6f[_0x6149('0x16')];this[_0x6149('0x17')]=_0x186d6f[_0x6149('0x17')];this['countmachineretry']=_0x186d6f[_0x6149('0x18')];this[_0x6149('0x19')]=_0x186d6f[_0x6149('0x19')];this['ContactId']=_0x186d6f[_0x6149('0x1a')];this[_0x6149('0x1b')]=_0x186d6f[_0x6149('0x1b')];this[_0x6149('0x1c')]=_0x186d6f[_0x6149('0x1c')];this['VoiceQueueId']=_0x186d6f[_0x6149('0x1d')];this['CampaignId']=_0x186d6f[_0x6149('0x1e')];this[_0x6149('0x1f')]=_0x186d6f['id'];this[_0x6149('0x20')]=_0x186d6f[_0x6149('0x8')][_0x6149('0xa')]||'';this[_0x6149('0x21')]=moment()[_0x6149('0x22')](_0x6149('0x23'));this[_0x6149('0x24')]=_0x186d6f[_0x6149('0x24')];this[_0x6149('0x25')]=_0x186d6f[_0x6149('0x25')];this['callbackat']=_0x186d6f[_0x6149('0x26')];this['recallme']=_0x186d6f[_0x6149('0x27')];this[_0x6149('0x28')]='';this['originatecalleridname']='';}Action[_0x6149('0x29')][_0x6149('0x2a')]=function(){return util[_0x6149('0x22')](_0x6149('0x2b'),this[_0x6149('0x7')],this['voiceQueue'][_0x6149('0x2c')]>0x0?this['number'][_0x6149('0x2d')](this['voiceQueue'][_0x6149('0x2c')]):this['number']);};Action[_0x6149('0x29')][_0x6149('0x2e')]=function(){return this[_0x6149('0xd')];};module[_0x6149('0x2f')]=Action;
\ No newline at end of file