Built motion from commit f67b3b02.|2.6.31
[motion2.git] / server / services / ami / preview / action.js
index d3a620e..2d9632b 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x2272=['string','uniqueid','idContact','queue','name','type','campaigntype','dialAnswer','membername','Agent','channelAgent','format','SIP/%s','calleridname','firstName','lastName','active','calleridnum','phone','scheduledat','countbusyretry','countcongestionretry','countnoanswerretry','countnosuchnumberretry','countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','originatecalleridnum','prototype','getCaller','\x22%s\x22\x20<%s>','util','lodash','moment','isNil'];(function(_0x1c63dc,_0x1334c9){var _0x7fdd53=function(_0x25e73b){while(--_0x25e73b){_0x1c63dc['push'](_0x1c63dc['shift']());}};_0x7fdd53(++_0x1334c9);}(_0x2272,0xd8));var _0x2227=function(_0x17d9e3,_0x1f969c){_0x17d9e3=_0x17d9e3-0x0;var _0x14192d=_0x2272[_0x17d9e3];return _0x14192d;};'use strict';var util=require(_0x2227('0x0'));var _=require(_0x2227('0x1'));var moment=require(_0x2227('0x2'));function checkNameSurname(_0x23bada,_0x42152f,_0x49cdb1){var _0x41d492='';if(!_[_0x2227('0x3')](_0x42152f)&&_0x2227('0x4')===typeof _0x42152f){_0x41d492+=_0x42152f;}if(!_['isNil'](_0x49cdb1)&&'string'===typeof _0x49cdb1){_0x41d492+='\x20'+_0x49cdb1;}if(_0x41d492!==''){return _0x41d492;}return _0x23bada;}function Action(_0x1e5a8a,_0x3b8661,_0xb33647,_0x2591db,_0xaec623){this[_0x2227('0x5')]=_0xb33647||undefined;this[_0x2227('0x6')]=_0x1e5a8a['id'];this[_0x2227('0x7')]=_0x3b8661[_0x2227('0x8')];this[_0x2227('0x9')]=_0x3b8661['type'];this[_0x2227('0xa')]='queue';this[_0x2227('0xb')]=![];this[_0x2227('0xc')]=_[_0x2227('0x3')](_0x1e5a8a[_0x2227('0xd')])?undefined:_0x1e5a8a[_0x2227('0xd')]['name'];this[_0x2227('0xe')]=this[_0x2227('0xc')]?util[_0x2227('0xf')](_0x2227('0x10'),this[_0x2227('0xc')]):_0x2591db||undefined;this[_0x2227('0x11')]=checkNameSurname(_0x1e5a8a['Contact']['phone'],_0x1e5a8a['Contact'][_0x2227('0x12')],_0x1e5a8a['Contact'][_0x2227('0x13')]);this[_0x2227('0x14')]=_0x1e5a8a['active']||![];this[_0x2227('0x15')]=_0x1e5a8a[_0x2227('0x16')];this[_0x2227('0x17')]=_0x1e5a8a[_0x2227('0x17')];this[_0x2227('0x18')]=_0x1e5a8a[_0x2227('0x18')]||0x0;this['countcongestionretry']=_0x1e5a8a[_0x2227('0x19')]||0x0;this[_0x2227('0x1a')]=_0x1e5a8a[_0x2227('0x1a')]||0x0;this['countglobal']=(_0x1e5a8a[_0x2227('0x18')]||0x0)+(_0x1e5a8a[_0x2227('0x19')]||0x0)+(_0x1e5a8a[_0x2227('0x1a')]||0x0)+(_0x1e5a8a[_0x2227('0x1b')]||0x0)+(_0x1e5a8a[_0x2227('0x1c')]||0x0)+(_0x1e5a8a[_0x2227('0x1d')]||0x0)+(_0x1e5a8a[_0x2227('0x1e')]||0x0)+(_0x1e5a8a['countagentrejectretry']||0x0);this[_0x2227('0x1b')]=_0x1e5a8a['countnosuchnumberretry']||0x0;this[_0x2227('0x1c')]=_0x1e5a8a[_0x2227('0x1c')]||0x0;this[_0x2227('0x1d')]=_0x1e5a8a[_0x2227('0x1d')]||0x0;this[_0x2227('0x1e')]=_0x1e5a8a[_0x2227('0x1e')]||0x0;this[_0x2227('0x1f')]=_0x1e5a8a[_0x2227('0x1f')]||0x0;this[_0x2227('0x20')]=_0x1e5a8a[_0x2227('0x20')];this[_0x2227('0x21')]=_0x1e5a8a['callbackuniqueid'];this[_0x2227('0x22')]=_0x1e5a8a[_0x2227('0x22')];this['recallme']=_0x1e5a8a[_0x2227('0x23')];this[_0x2227('0x24')]=_0x1e5a8a['ContactId'];this['ListId']=_0x1e5a8a[_0x2227('0x25')];this[_0x2227('0x26')]=_[_0x2227('0x3')](_0x1e5a8a[_0x2227('0xd')])?_0x1e5a8a['UserId']:_0x1e5a8a[_0x2227('0xd')]['id'];this[_0x2227('0x27')]=_0x1e5a8a[_0x2227('0x27')];this[_0x2227('0x28')]='';this['originatecalleridname']='';}Action[_0x2227('0x29')][_0x2227('0x2a')]=function(){return util[_0x2227('0xf')](_0x2227('0x2b'),this[_0x2227('0x11')],this['number']);};module['exports']=Action;
\ No newline at end of file
+var _0x4137=['string','uniqueid','queue','name','type','campaigntype','dialAnswer','membername','Agent','channelAgent','SIP/%s','calleridname','firstName','Contact','active','phone','countbusyretry','countcongestionretry','countnoanswerretry','countglobal','countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','countnosuchnumberretry','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','VoiceQueueId','originatecalleridname','prototype','getCaller','format','\x22%s\x22\x20<%s>','exports','util','lodash','moment','isNil'];(function(_0x3ff3bf,_0x24ab78){var _0x31c508=function(_0x68d1b1){while(--_0x68d1b1){_0x3ff3bf['push'](_0x3ff3bf['shift']());}};_0x31c508(++_0x24ab78);}(_0x4137,0xf8));var _0x7413=function(_0x4e676e,_0x2a7c6d){_0x4e676e=_0x4e676e-0x0;var _0x336a3c=_0x4137[_0x4e676e];return _0x336a3c;};'use strict';var util=require(_0x7413('0x0'));var _=require(_0x7413('0x1'));var moment=require(_0x7413('0x2'));function checkNameSurname(_0x4f372c,_0x392ebc,_0x410971){var _0x2e6df7='';if(!_[_0x7413('0x3')](_0x392ebc)&&_0x7413('0x4')===typeof _0x392ebc){_0x2e6df7+=_0x392ebc;}if(!_[_0x7413('0x3')](_0x410971)&&_0x7413('0x4')===typeof _0x410971){_0x2e6df7+='\x20'+_0x410971;}if(_0x2e6df7!==''){return _0x2e6df7;}return _0x4f372c;}function Action(_0x3bb181,_0x4fbade,_0xc808cd,_0x188d89,_0x5b39ac){this[_0x7413('0x5')]=_0xc808cd||undefined;this['idContact']=_0x3bb181['id'];this[_0x7413('0x6')]=_0x4fbade[_0x7413('0x7')];this['type']=_0x4fbade[_0x7413('0x8')];this[_0x7413('0x9')]='queue';this[_0x7413('0xa')]=![];this[_0x7413('0xb')]=_[_0x7413('0x3')](_0x3bb181[_0x7413('0xc')])?undefined:_0x3bb181[_0x7413('0xc')]['name'];this[_0x7413('0xd')]=this[_0x7413('0xb')]?util['format'](_0x7413('0xe'),this[_0x7413('0xb')]):_0x188d89||undefined;this[_0x7413('0xf')]=checkNameSurname(_0x3bb181['Contact']['phone'],_0x3bb181['Contact'][_0x7413('0x10')],_0x3bb181[_0x7413('0x11')]['lastName']);this[_0x7413('0x12')]=_0x3bb181[_0x7413('0x12')]||![];this['calleridnum']=_0x3bb181[_0x7413('0x13')];this['scheduledat']=_0x3bb181['scheduledat'];this[_0x7413('0x14')]=_0x3bb181['countbusyretry']||0x0;this[_0x7413('0x15')]=_0x3bb181['countcongestionretry']||0x0;this[_0x7413('0x16')]=_0x3bb181[_0x7413('0x16')]||0x0;this[_0x7413('0x17')]=(_0x3bb181[_0x7413('0x14')]||0x0)+(_0x3bb181[_0x7413('0x15')]||0x0)+(_0x3bb181[_0x7413('0x16')]||0x0)+(_0x3bb181['countnosuchnumberretry']||0x0)+(_0x3bb181[_0x7413('0x18')]||0x0)+(_0x3bb181[_0x7413('0x19')]||0x0)+(_0x3bb181[_0x7413('0x1a')]||0x0)+(_0x3bb181[_0x7413('0x1b')]||0x0);this['countnosuchnumberretry']=_0x3bb181[_0x7413('0x1c')]||0x0;this[_0x7413('0x18')]=_0x3bb181[_0x7413('0x18')]||0x0;this[_0x7413('0x19')]=_0x3bb181[_0x7413('0x19')]||0x0;this[_0x7413('0x1a')]=_0x3bb181[_0x7413('0x1a')]||0x0;this[_0x7413('0x1b')]=_0x3bb181['countagentrejectretry']||0x0;this['callback']=_0x3bb181[_0x7413('0x1d')];this['callbackuniqueid']=_0x3bb181[_0x7413('0x1e')];this[_0x7413('0x1f')]=_0x3bb181[_0x7413('0x1f')];this[_0x7413('0x20')]=_0x3bb181[_0x7413('0x20')];this[_0x7413('0x21')]=_0x3bb181[_0x7413('0x21')];this[_0x7413('0x22')]=_0x3bb181[_0x7413('0x22')];this['UserId']=_['isNil'](_0x3bb181[_0x7413('0xc')])?_0x3bb181['UserId']:_0x3bb181[_0x7413('0xc')]['id'];this[_0x7413('0x23')]=_0x3bb181[_0x7413('0x23')];this['originatecalleridnum']='';this[_0x7413('0x24')]='';}Action[_0x7413('0x25')][_0x7413('0x26')]=function(){return util[_0x7413('0x27')](_0x7413('0x28'),this[_0x7413('0xf')],this['number']);};module[_0x7413('0x29')]=Action;
\ No newline at end of file