b54014c52deca6441bfdb150ea1277ffe229d2e4
[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 _0x987c=['talktime','queue','membername','reason','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','CampaignId','originatecalleridnum','originatecalleridname','agiafterat','state','statedesc','exports','../utils','scheduledat','type','countbusyretry','countcongestionretry','countnoanswerretry','countglobal','countnosuchnumberretry','countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','uniqueid','calleridname','name','calleridnum','number','starttime','responsetime','droptime','endtime','getSeconds','holdtime'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x987c,0xe5));var _0xc987=function(_0x522ceb,_0x5f493b){_0x522ceb=_0x522ceb-0x0;var _0x58dbb2=_0x987c[_0x522ceb];return _0x58dbb2;};'use strict';var utils=require(_0xc987('0x0'));function QueueCallerAbandon(_0x3962ee,_0xcf1698){this[_0xc987('0x1')]=_0x3962ee[_0xc987('0x1')];this[_0xc987('0x2')]=_0x3962ee[_0xc987('0x2')];this['campaigntype']=_0x3962ee[_0xc987('0x2')]==='outbound'?'queue':_0x3962ee[_0xc987('0x2')];this[_0xc987('0x3')]=_0x3962ee['countbusyretry'];this[_0xc987('0x4')]=_0x3962ee[_0xc987('0x4')];this[_0xc987('0x5')]=_0x3962ee[_0xc987('0x5')];this[_0xc987('0x6')]=_0x3962ee[_0xc987('0x3')]+_0x3962ee[_0xc987('0x4')]+_0x3962ee['countnoanswerretry']+_0x3962ee[_0xc987('0x7')]+_0x3962ee[_0xc987('0x8')]+_0x3962ee[_0xc987('0x9')]+_0x3962ee[_0xc987('0xa')]+_0x3962ee[_0xc987('0xb')];this['countnosuchnumberretry']=_0x3962ee[_0xc987('0x7')];this['countdropretry']=_0x3962ee['countdropretry'];this['countabandonedretry']=_0x3962ee[_0xc987('0x9')];this['countmachineretry']=_0x3962ee[_0xc987('0xa')];this['countagentrejectretry']=_0x3962ee[_0xc987('0xb')];this[_0xc987('0xc')]=_0xcf1698[_0xc987('0xc')];this[_0xc987('0xd')]=_0x3962ee[_0xc987('0xe')];this[_0xc987('0xf')]=_0x3962ee[_0xc987('0x10')];this[_0xc987('0x11')]=_0x3962ee[_0xc987('0x11')];this[_0xc987('0x12')]=_0x3962ee[_0xc987('0x12')];this[_0xc987('0x13')]=_0x3962ee[_0xc987('0x13')];this['dropreason']=_0x3962ee['dropreason'];this[_0xc987('0x14')]=this[_0xc987('0x13')];this['ringtime']=utils[_0xc987('0x15')](_0x3962ee['responsetime'],_0x3962ee[_0xc987('0x11')]);this[_0xc987('0x16')]=utils[_0xc987('0x15')](this[_0xc987('0x13')],_0x3962ee['responsetime']);this[_0xc987('0x17')]=0x0;this[_0xc987('0x18')]=_0xcf1698[_0xc987('0x18')];this[_0xc987('0x19')]=_0xcf1698['connectedlinename'];this[_0xc987('0x1a')]=_0xcf1698['reason'];this[_0xc987('0x1b')]=_0x3962ee[_0xc987('0x1b')];this[_0xc987('0x1c')]=_0x3962ee[_0xc987('0x1c')];this[_0xc987('0x1d')]=_0x3962ee[_0xc987('0x1d')];this['recallme']=_0x3962ee[_0xc987('0x1e')];this[_0xc987('0x1f')]=_0x3962ee[_0xc987('0x1f')];this[_0xc987('0x20')]=_0x3962ee[_0xc987('0x20')];this[_0xc987('0x21')]=_0x3962ee[_0xc987('0x21')];this[_0xc987('0x22')]=_0x3962ee[_0xc987('0x22')];this['CampaignId']=_0x3962ee[_0xc987('0x23')];this['originatecalleridnum']=_0x3962ee[_0xc987('0x24')]||'';this['originatecalleridname']=_0x3962ee[_0xc987('0x25')]||'';this[_0xc987('0x26')]=_0x3962ee[_0xc987('0x26')];this[_0xc987('0x27')]=_0x3962ee['state'];this['statedesc']=_0x3962ee[_0xc987('0x28')];}module[_0xc987('0x29')]=QueueCallerAbandon;