Built motion from commit d5e4af8c.|2.6.23
[motion2.git] / server / services / ami / dialer / models / action.js
index 712b765..bad8555 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xfde1=['countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','ContactId','ListId','UserId','VoiceQueueId','CampaignId','idHopper','ContactFirstName','firstName','starttime','format','YYYY-MM-DD\x20HH:mm:ss','callback','callbackuniqueid','callbackat','recallme','originatecalleridnum','originatecalleridname','prototype','getCaller','\x22%s\x22\x20<%s>','substring','dialCutDigit','number','getQueue','moment','isNil','string','voiceQueue','uniqueid','Contact','phone','lastName','queue','name','active','type','dialQueueTimeout','scheduledat','countbusyretry','countcongestionretry','countnoanswerretry'];(function(_0x4a4505,_0x338e67){var _0x1a5c8c=function(_0x1e7acb){while(--_0x1e7acb){_0x4a4505['push'](_0x4a4505['shift']());}};_0x1a5c8c(++_0x338e67);}(_0xfde1,0x76));var _0x1fde=function(_0x122ef9,_0x451d2a){_0x122ef9=_0x122ef9-0x0;var _0x42fba0=_0xfde1[_0x122ef9];return _0x42fba0;};'use strict';var util=require('util');var _=require('lodash');var moment=require(_0x1fde('0x0'));function checkNameSurname(_0x1762a8,_0x4bd4b7,_0x93c003){var _0x359774='';if(!_[_0x1fde('0x1')](_0x4bd4b7)&&_0x1fde('0x2')===typeof _0x4bd4b7){_0x359774+=_0x4bd4b7;}if(!_[_0x1fde('0x1')](_0x93c003)&&_0x1fde('0x2')===typeof _0x93c003){_0x359774+='\x20'+_0x93c003;}if(_0x359774!==''){return _0x359774;}return _0x1762a8;}function Action(_0x168458,_0x4da2a6,_0x58a302){this[_0x1fde('0x3')]=_0x168458;this[_0x1fde('0x4')]=_0x58a302||undefined;this['name']=checkNameSurname(_0x4da2a6[_0x1fde('0x5')][_0x1fde('0x6')],_0x4da2a6[_0x1fde('0x5')]['firstName'],_0x4da2a6[_0x1fde('0x5')][_0x1fde('0x7')]);this['number']=_0x4da2a6[_0x1fde('0x6')];this[_0x1fde('0x8')]=_0x168458[_0x1fde('0x9')];this[_0x1fde('0xa')]=_0x4da2a6['active']||![];this[_0x1fde('0xb')]=_0x168458[_0x1fde('0xb')];this[_0x1fde('0xc')]=_0x168458[_0x1fde('0xc')]||0x3;this[_0x1fde('0xd')]=_0x4da2a6[_0x1fde('0xd')];this[_0x1fde('0xe')]=_0x4da2a6[_0x1fde('0xe')];this[_0x1fde('0xf')]=_0x4da2a6[_0x1fde('0xf')];this[_0x1fde('0x10')]=_0x4da2a6[_0x1fde('0x10')];this['countnosuchnumberretry']=_0x4da2a6['countnosuchnumberretry'];this[_0x1fde('0x11')]=_0x4da2a6[_0x1fde('0x11')];this[_0x1fde('0x12')]=_0x4da2a6['countabandonedretry'];this[_0x1fde('0x13')]=_0x4da2a6['countmachineretry'];this[_0x1fde('0x14')]=_0x4da2a6['countagentrejectretry'];this['ContactId']=_0x4da2a6[_0x1fde('0x15')];this[_0x1fde('0x16')]=_0x4da2a6[_0x1fde('0x16')];this[_0x1fde('0x17')]=_0x4da2a6[_0x1fde('0x17')];this['VoiceQueueId']=_0x4da2a6[_0x1fde('0x18')];this[_0x1fde('0x19')]=_0x4da2a6[_0x1fde('0x19')];this[_0x1fde('0x1a')]=_0x4da2a6['id'];this[_0x1fde('0x1b')]=_0x4da2a6[_0x1fde('0x5')][_0x1fde('0x1c')]||'';this[_0x1fde('0x1d')]=moment()[_0x1fde('0x1e')](_0x1fde('0x1f'));this[_0x1fde('0x20')]=_0x4da2a6['callback'];this[_0x1fde('0x21')]=_0x4da2a6['callbackuniqueid'];this[_0x1fde('0x22')]=_0x4da2a6['callbackat'];this[_0x1fde('0x23')]=_0x4da2a6[_0x1fde('0x23')];this[_0x1fde('0x24')]='';this[_0x1fde('0x25')]='';}Action[_0x1fde('0x26')][_0x1fde('0x27')]=function(){return util['format'](_0x1fde('0x28'),this[_0x1fde('0x9')],this[_0x1fde('0x3')]['dialCutDigit']>0x0?this['number'][_0x1fde('0x29')](this[_0x1fde('0x3')][_0x1fde('0x2a')]):this[_0x1fde('0x2b')]);};Action[_0x1fde('0x26')][_0x1fde('0x2c')]=function(){return this['queue'];};module['exports']=Action;
\ No newline at end of file
+var _0xe8d7=['idHopper','ContactFirstName','starttime','format','callback','callbackuniqueid','callbackat','originatecalleridnum','originatecalleridname','getCaller','\x22%s\x22\x20<%s>','dialCutDigit','getQueue','exports','util','lodash','isNil','string','voiceQueue','name','Contact','phone','firstName','lastName','number','queue','active','type','dialQueueTimeout','scheduledat','countbusyretry','countcongestionretry','countnoanswerretry','countnosuchnumberretry','countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','ListId','UserId','VoiceQueueId','CampaignId'];(function(_0x5d05c6,_0x482c6e){var _0x52403a=function(_0x256a97){while(--_0x256a97){_0x5d05c6['push'](_0x5d05c6['shift']());}};_0x52403a(++_0x482c6e);}(_0xe8d7,0x1dc));var _0x7e8d=function(_0x3bc4c9,_0x4d7cfe){_0x3bc4c9=_0x3bc4c9-0x0;var _0x29cdea=_0xe8d7[_0x3bc4c9];return _0x29cdea;};'use strict';var util=require(_0x7e8d('0x0'));var _=require(_0x7e8d('0x1'));var moment=require('moment');function checkNameSurname(_0x330879,_0xfce4d1,_0x53b955){var _0x3a316c='';if(!_[_0x7e8d('0x2')](_0xfce4d1)&&'string'===typeof _0xfce4d1){_0x3a316c+=_0xfce4d1;}if(!_[_0x7e8d('0x2')](_0x53b955)&&_0x7e8d('0x3')===typeof _0x53b955){_0x3a316c+='\x20'+_0x53b955;}if(_0x3a316c!==''){return _0x3a316c;}return _0x330879;}function Action(_0x475648,_0x11422e,_0x1efacf){this[_0x7e8d('0x4')]=_0x475648;this['uniqueid']=_0x1efacf||undefined;this[_0x7e8d('0x5')]=checkNameSurname(_0x11422e[_0x7e8d('0x6')][_0x7e8d('0x7')],_0x11422e[_0x7e8d('0x6')][_0x7e8d('0x8')],_0x11422e['Contact'][_0x7e8d('0x9')]);this[_0x7e8d('0xa')]=_0x11422e['phone'];this[_0x7e8d('0xb')]=_0x475648[_0x7e8d('0x5')];this[_0x7e8d('0xc')]=_0x11422e['active']||![];this['type']=_0x475648[_0x7e8d('0xd')];this['dialQueueTimeout']=_0x475648[_0x7e8d('0xe')]||0x3;this[_0x7e8d('0xf')]=_0x11422e[_0x7e8d('0xf')];this[_0x7e8d('0x10')]=_0x11422e[_0x7e8d('0x10')];this[_0x7e8d('0x11')]=_0x11422e[_0x7e8d('0x11')];this[_0x7e8d('0x12')]=_0x11422e[_0x7e8d('0x12')];this[_0x7e8d('0x13')]=_0x11422e[_0x7e8d('0x13')];this[_0x7e8d('0x14')]=_0x11422e[_0x7e8d('0x14')];this[_0x7e8d('0x15')]=_0x11422e[_0x7e8d('0x15')];this[_0x7e8d('0x16')]=_0x11422e[_0x7e8d('0x16')];this[_0x7e8d('0x17')]=_0x11422e[_0x7e8d('0x17')];this['ContactId']=_0x11422e['ContactId'];this[_0x7e8d('0x18')]=_0x11422e[_0x7e8d('0x18')];this['UserId']=_0x11422e[_0x7e8d('0x19')];this['VoiceQueueId']=_0x11422e[_0x7e8d('0x1a')];this[_0x7e8d('0x1b')]=_0x11422e[_0x7e8d('0x1b')];this[_0x7e8d('0x1c')]=_0x11422e['id'];this[_0x7e8d('0x1d')]=_0x11422e[_0x7e8d('0x6')]['firstName']||'';this[_0x7e8d('0x1e')]=moment()[_0x7e8d('0x1f')]('YYYY-MM-DD\x20HH:mm:ss');this['callback']=_0x11422e[_0x7e8d('0x20')];this[_0x7e8d('0x21')]=_0x11422e[_0x7e8d('0x21')];this[_0x7e8d('0x22')]=_0x11422e[_0x7e8d('0x22')];this['recallme']=_0x11422e['recallme'];this[_0x7e8d('0x23')]='';this[_0x7e8d('0x24')]='';}Action['prototype'][_0x7e8d('0x25')]=function(){return util['format'](_0x7e8d('0x26'),this['name'],this[_0x7e8d('0x4')][_0x7e8d('0x27')]>0x0?this['number']['substring'](this[_0x7e8d('0x4')]['dialCutDigit']):this[_0x7e8d('0xa')]);};Action['prototype'][_0x7e8d('0x28')]=function(){return this['queue'];};module[_0x7e8d('0x29')]=Action;
\ No newline at end of file