Built motion from commit (unavailable).|2.6.0
[motion2.git] / server / services / ami / preview / action.js
index f5593c4..fb86e21 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x4272=['exports','util','lodash','isNil','string','uniqueid','idContact','name','type','campaigntype','membername','Agent','channelAgent','SIP/%s','Contact','firstName','lastName','active','calleridnum','phone','scheduledat','countbusyretry','countcongestionretry','countnoanswerretry','countnosuchnumberretry','countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','originatecalleridnum','originatecalleridname','prototype','getCaller','format','\x22%s\x22\x20<%s>','calleridname','number'];(function(_0x3f0a09,_0x22db38){var _0x5dad62=function(_0x47b240){while(--_0x47b240){_0x3f0a09['push'](_0x3f0a09['shift']());}};_0x5dad62(++_0x22db38);}(_0x4272,0x13c));var _0x2427=function(_0xe7b76,_0xe8377a){_0xe7b76=_0xe7b76-0x0;var _0x26f1c0=_0x4272[_0xe7b76];return _0x26f1c0;};'use strict';var util=require(_0x2427('0x0'));var _=require(_0x2427('0x1'));var moment=require('moment');function checkNameSurname(_0x274fe3,_0x2a83f0,_0x1e7b20){var _0x25100b='';if(!_[_0x2427('0x2')](_0x2a83f0)&&'string'===typeof _0x2a83f0){_0x25100b+=_0x2a83f0;}if(!_[_0x2427('0x2')](_0x1e7b20)&&_0x2427('0x3')===typeof _0x1e7b20){_0x25100b+='\x20'+_0x1e7b20;}if(_0x25100b!==''){return _0x25100b;}return _0x274fe3;}function Action(_0x2b4569,_0x205701,_0x1b4de9,_0x294b0a,_0x407ec8){this[_0x2427('0x4')]=_0x1b4de9||undefined;this[_0x2427('0x5')]=_0x2b4569['id'];this['queue']=_0x205701[_0x2427('0x6')];this[_0x2427('0x7')]=_0x205701[_0x2427('0x7')];this[_0x2427('0x8')]='queue';this['dialAnswer']=![];this[_0x2427('0x9')]=_[_0x2427('0x2')](_0x2b4569['Agent'])?undefined:_0x2b4569[_0x2427('0xa')][_0x2427('0x6')];this[_0x2427('0xb')]=this['membername']?util['format'](_0x2427('0xc'),this[_0x2427('0x9')]):_0x294b0a||undefined;this['calleridname']=checkNameSurname(_0x2b4569[_0x2427('0xd')]['phone'],_0x2b4569['Contact'][_0x2427('0xe')],_0x2b4569['Contact'][_0x2427('0xf')]);this['active']=_0x2b4569[_0x2427('0x10')]||![];this[_0x2427('0x11')]=_0x2b4569[_0x2427('0xd')][_0x2427('0x12')];this['scheduledat']=_0x2b4569[_0x2427('0x13')];this[_0x2427('0x14')]=_0x2b4569[_0x2427('0x14')]||0x0;this['countcongestionretry']=_0x2b4569[_0x2427('0x15')]||0x0;this['countnoanswerretry']=_0x2b4569[_0x2427('0x16')]||0x0;this['countglobal']=(_0x2b4569[_0x2427('0x14')]||0x0)+(_0x2b4569[_0x2427('0x15')]||0x0)+(_0x2b4569[_0x2427('0x16')]||0x0)+(_0x2b4569[_0x2427('0x17')]||0x0)+(_0x2b4569[_0x2427('0x18')]||0x0)+(_0x2b4569[_0x2427('0x19')]||0x0)+(_0x2b4569[_0x2427('0x1a')]||0x0)+(_0x2b4569[_0x2427('0x1b')]||0x0);this[_0x2427('0x17')]=_0x2b4569[_0x2427('0x17')]||0x0;this[_0x2427('0x18')]=_0x2b4569[_0x2427('0x18')]||0x0;this[_0x2427('0x19')]=_0x2b4569[_0x2427('0x19')]||0x0;this[_0x2427('0x1a')]=_0x2b4569['countmachineretry']||0x0;this['countagentrejectretry']=_0x2b4569[_0x2427('0x1b')]||0x0;this[_0x2427('0x1c')]=_0x2b4569[_0x2427('0x1c')];this[_0x2427('0x1d')]=_0x2b4569['callbackuniqueid'];this[_0x2427('0x1e')]=_0x2b4569[_0x2427('0x1e')];this[_0x2427('0x1f')]=_0x2b4569['recallme'];this[_0x2427('0x20')]=_0x2b4569[_0x2427('0x20')];this[_0x2427('0x21')]=_0x2b4569[_0x2427('0x21')];this['UserId']=_[_0x2427('0x2')](_0x2b4569['Agent'])?_0x2b4569[_0x2427('0x22')]:_0x2b4569[_0x2427('0xa')]['id'];this[_0x2427('0x23')]=_0x2b4569['VoiceQueueId'];this[_0x2427('0x24')]='';this[_0x2427('0x25')]='';}Action[_0x2427('0x26')][_0x2427('0x27')]=function(){return util[_0x2427('0x28')](_0x2427('0x29'),this[_0x2427('0x2a')],this[_0x2427('0x2b')]);};module[_0x2427('0x2c')]=Action;
\ No newline at end of file
+var _0x43a5=['number','exports','util','lodash','isNil','string','uniqueid','idContact','queue','name','type','campaigntype','dialAnswer','membername','Agent','format','SIP/%s','calleridname','Contact','phone','lastName','active','calleridnum','scheduledat','countbusyretry','countcongestionretry','countnoanswerretry','countglobal','countnosuchnumberretry','countabandonedretry','countmachineretry','countagentrejectretry','countdropretry','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','originatecalleridname','prototype','getCaller','\x22%s\x22\x20<%s>'];(function(_0x206601,_0x49b71a){var _0x1ecfa6=function(_0xab6bb3){while(--_0xab6bb3){_0x206601['push'](_0x206601['shift']());}};_0x1ecfa6(++_0x49b71a);}(_0x43a5,0x13d));var _0x543a=function(_0x122ef9,_0x451d2a){_0x122ef9=_0x122ef9-0x0;var _0x42fba0=_0x43a5[_0x122ef9];return _0x42fba0;};'use strict';var util=require(_0x543a('0x0'));var _=require(_0x543a('0x1'));var moment=require('moment');function checkNameSurname(_0x105fed,_0x3a1dce,_0x274e9f){var _0x4cc64d='';if(!_[_0x543a('0x2')](_0x3a1dce)&&_0x543a('0x3')===typeof _0x3a1dce){_0x4cc64d+=_0x3a1dce;}if(!_['isNil'](_0x274e9f)&&_0x543a('0x3')===typeof _0x274e9f){_0x4cc64d+='\x20'+_0x274e9f;}if(_0x4cc64d!==''){return _0x4cc64d;}return _0x105fed;}function Action(_0x5ad6f0,_0x4d764,_0x1c7424,_0x560304,_0x32c927){this[_0x543a('0x4')]=_0x1c7424||undefined;this[_0x543a('0x5')]=_0x5ad6f0['id'];this[_0x543a('0x6')]=_0x4d764[_0x543a('0x7')];this[_0x543a('0x8')]=_0x4d764[_0x543a('0x8')];this[_0x543a('0x9')]=_0x543a('0x6');this[_0x543a('0xa')]=![];this[_0x543a('0xb')]=_[_0x543a('0x2')](_0x5ad6f0[_0x543a('0xc')])?undefined:_0x5ad6f0[_0x543a('0xc')][_0x543a('0x7')];this['channelAgent']=this[_0x543a('0xb')]?util[_0x543a('0xd')](_0x543a('0xe'),this['membername']):_0x560304||undefined;this[_0x543a('0xf')]=checkNameSurname(_0x5ad6f0[_0x543a('0x10')][_0x543a('0x11')],_0x5ad6f0[_0x543a('0x10')]['firstName'],_0x5ad6f0[_0x543a('0x10')][_0x543a('0x12')]);this[_0x543a('0x13')]=_0x5ad6f0[_0x543a('0x13')]||![];this[_0x543a('0x14')]=_0x5ad6f0['phone'];this[_0x543a('0x15')]=_0x5ad6f0[_0x543a('0x15')];this[_0x543a('0x16')]=_0x5ad6f0[_0x543a('0x16')]||0x0;this[_0x543a('0x17')]=_0x5ad6f0[_0x543a('0x17')]||0x0;this[_0x543a('0x18')]=_0x5ad6f0[_0x543a('0x18')]||0x0;this[_0x543a('0x19')]=(_0x5ad6f0[_0x543a('0x16')]||0x0)+(_0x5ad6f0['countcongestionretry']||0x0)+(_0x5ad6f0[_0x543a('0x18')]||0x0)+(_0x5ad6f0[_0x543a('0x1a')]||0x0)+(_0x5ad6f0['countdropretry']||0x0)+(_0x5ad6f0[_0x543a('0x1b')]||0x0)+(_0x5ad6f0[_0x543a('0x1c')]||0x0)+(_0x5ad6f0[_0x543a('0x1d')]||0x0);this[_0x543a('0x1a')]=_0x5ad6f0['countnosuchnumberretry']||0x0;this[_0x543a('0x1e')]=_0x5ad6f0[_0x543a('0x1e')]||0x0;this[_0x543a('0x1b')]=_0x5ad6f0[_0x543a('0x1b')]||0x0;this[_0x543a('0x1c')]=_0x5ad6f0[_0x543a('0x1c')]||0x0;this[_0x543a('0x1d')]=_0x5ad6f0['countagentrejectretry']||0x0;this[_0x543a('0x1f')]=_0x5ad6f0[_0x543a('0x1f')];this[_0x543a('0x20')]=_0x5ad6f0[_0x543a('0x20')];this[_0x543a('0x21')]=_0x5ad6f0[_0x543a('0x21')];this[_0x543a('0x22')]=_0x5ad6f0[_0x543a('0x22')];this[_0x543a('0x23')]=_0x5ad6f0['ContactId'];this['ListId']=_0x5ad6f0[_0x543a('0x24')];this[_0x543a('0x25')]=_[_0x543a('0x2')](_0x5ad6f0[_0x543a('0xc')])?_0x5ad6f0[_0x543a('0x25')]:_0x5ad6f0['Agent']['id'];this[_0x543a('0x26')]=_0x5ad6f0[_0x543a('0x26')];this['originatecalleridnum']='';this[_0x543a('0x27')]='';}Action[_0x543a('0x28')][_0x543a('0x29')]=function(){return util[_0x543a('0xd')](_0x543a('0x2a'),this['calleridname'],this[_0x543a('0x2b')]);};module[_0x543a('0x2c')]=Action;
\ No newline at end of file