474ff12dcaf550763a1fd8dedbe2da6f21f2250d
[motion2.git] / server / services / ami / dialer / models / queueCallerAbandon.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
13 // * The SOFTWARE PRODUCT is protected by copyright laws and international *
14 // * copyright treaties, as well as other intellectual property laws and   *
15 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0x4976=['type','campaigntype','outbound','queue','countbusyretry','countcongestionretry','countnoanswerretry','countglobal','countmachineretry','countagentrejectretry','countnosuchnumberretry','countdropretry','countabandonedretry','uniqueid','calleridname','name','number','starttime','responsetime','droptime','dropreason','endtime','ringtime','getSeconds','holdtime','membername','connectedlinename','reason','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','CampaignId','originatecalleridnum','originatecalleridname','agiafterat','state','statedesc','exports','../utils','scheduledat'];(function(_0x3e27b4,_0x3b5f8d){var _0x4d5561=function(_0x347aae){while(--_0x347aae){_0x3e27b4['push'](_0x3e27b4['shift']());}};_0x4d5561(++_0x3b5f8d);}(_0x4976,0x132));var _0x6497=function(_0x2e799f,_0x4c1eff){_0x2e799f=_0x2e799f-0x0;var _0x415c56=_0x4976[_0x2e799f];return _0x415c56;};'use strict';var utils=require(_0x6497('0x0'));function QueueCallerAbandon(_0x2836f7,_0x495fef){this[_0x6497('0x1')]=_0x2836f7[_0x6497('0x1')];this[_0x6497('0x2')]=_0x2836f7[_0x6497('0x2')];this[_0x6497('0x3')]=_0x2836f7['type']===_0x6497('0x4')?_0x6497('0x5'):_0x2836f7[_0x6497('0x2')];this[_0x6497('0x6')]=_0x2836f7[_0x6497('0x6')];this[_0x6497('0x7')]=_0x2836f7[_0x6497('0x7')];this[_0x6497('0x8')]=_0x2836f7[_0x6497('0x8')];this[_0x6497('0x9')]=_0x2836f7[_0x6497('0x6')]+_0x2836f7[_0x6497('0x7')]+_0x2836f7[_0x6497('0x8')]+_0x2836f7['countnosuchnumberretry']+_0x2836f7['countdropretry']+_0x2836f7['countabandonedretry']+_0x2836f7[_0x6497('0xa')]+_0x2836f7[_0x6497('0xb')];this[_0x6497('0xc')]=_0x2836f7[_0x6497('0xc')];this[_0x6497('0xd')]=_0x2836f7[_0x6497('0xd')];this[_0x6497('0xe')]=_0x2836f7['countabandonedretry'];this[_0x6497('0xa')]=_0x2836f7[_0x6497('0xa')];this['countagentrejectretry']=_0x2836f7[_0x6497('0xb')];this[_0x6497('0xf')]=_0x495fef[_0x6497('0xf')];this[_0x6497('0x10')]=_0x2836f7[_0x6497('0x11')];this['calleridnum']=_0x2836f7[_0x6497('0x12')];this[_0x6497('0x13')]=_0x2836f7[_0x6497('0x13')];this[_0x6497('0x14')]=_0x2836f7[_0x6497('0x14')];this[_0x6497('0x15')]=_0x2836f7[_0x6497('0x15')];this[_0x6497('0x16')]=_0x2836f7['dropreason'];this[_0x6497('0x17')]=this[_0x6497('0x15')];this[_0x6497('0x18')]=utils[_0x6497('0x19')](_0x2836f7[_0x6497('0x14')],_0x2836f7[_0x6497('0x13')]);this[_0x6497('0x1a')]=utils[_0x6497('0x19')](this[_0x6497('0x15')],_0x2836f7[_0x6497('0x14')]);this['talktime']=0x0;this[_0x6497('0x5')]=_0x495fef['queue'];this[_0x6497('0x1b')]=_0x495fef[_0x6497('0x1c')];this[_0x6497('0x1d')]=_0x495fef[_0x6497('0x1d')];this['callback']=_0x2836f7['callback'];this['callbackuniqueid']=_0x2836f7[_0x6497('0x1e')];this[_0x6497('0x1f')]=_0x2836f7[_0x6497('0x1f')];this[_0x6497('0x20')]=_0x2836f7[_0x6497('0x20')];this[_0x6497('0x21')]=_0x2836f7[_0x6497('0x21')];this[_0x6497('0x22')]=_0x2836f7[_0x6497('0x22')];this['UserId']=_0x2836f7[_0x6497('0x23')];this[_0x6497('0x24')]=_0x2836f7[_0x6497('0x24')];this[_0x6497('0x25')]=_0x2836f7[_0x6497('0x25')];this[_0x6497('0x26')]=_0x2836f7['originatecalleridnum']||'';this[_0x6497('0x27')]=_0x2836f7[_0x6497('0x27')]||'';this[_0x6497('0x28')]=_0x2836f7[_0x6497('0x28')];this[_0x6497('0x29')]=_0x2836f7[_0x6497('0x29')];this['statedesc']=_0x2836f7[_0x6497('0x2a')];}module[_0x6497('0x2b')]=QueueCallerAbandon;