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