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