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