Built motion from commit 64a6f4bc.|2.6.26
[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 _0xa7af=['ringtime','getSeconds','membername','reason','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','CampaignId','originatecalleridnum','originatecalleridname','state','statedesc','exports','../utils','scheduledat','type','campaigntype','outbound','queue','countbusyretry','countcongestionretry','countnoanswerretry','countglobal','countagentrejectretry','countnosuchnumberretry','countdropretry','countabandonedretry','countmachineretry','uniqueid','calleridname','name','calleridnum','number','starttime','responsetime','droptime','dropreason','endtime'];(function(_0x5c351c,_0x2046d8){var _0x26f3b3=function(_0x47ac18){while(--_0x47ac18){_0x5c351c['push'](_0x5c351c['shift']());}};_0x26f3b3(++_0x2046d8);}(_0xa7af,0x114));var _0xfa7a=function(_0x30c494,_0x3fe012){_0x30c494=_0x30c494-0x0;var _0x94c57a=_0xa7af[_0x30c494];return _0x94c57a;};'use strict';var utils=require(_0xfa7a('0x0'));function QueueCallerAbandon(_0x429f8a,_0x6d5e53){this[_0xfa7a('0x1')]=_0x429f8a['scheduledat'];this[_0xfa7a('0x2')]=_0x429f8a[_0xfa7a('0x2')];this[_0xfa7a('0x3')]=_0x429f8a['type']===_0xfa7a('0x4')?_0xfa7a('0x5'):_0x429f8a[_0xfa7a('0x2')];this[_0xfa7a('0x6')]=_0x429f8a[_0xfa7a('0x6')];this['countcongestionretry']=_0x429f8a[_0xfa7a('0x7')];this[_0xfa7a('0x8')]=_0x429f8a[_0xfa7a('0x8')];this[_0xfa7a('0x9')]=_0x429f8a['countbusyretry']+_0x429f8a['countcongestionretry']+_0x429f8a[_0xfa7a('0x8')]+_0x429f8a['countnosuchnumberretry']+_0x429f8a['countdropretry']+_0x429f8a['countabandonedretry']+_0x429f8a['countmachineretry']+_0x429f8a[_0xfa7a('0xa')];this[_0xfa7a('0xb')]=_0x429f8a['countnosuchnumberretry'];this[_0xfa7a('0xc')]=_0x429f8a[_0xfa7a('0xc')];this[_0xfa7a('0xd')]=_0x429f8a[_0xfa7a('0xd')];this[_0xfa7a('0xe')]=_0x429f8a[_0xfa7a('0xe')];this[_0xfa7a('0xa')]=_0x429f8a[_0xfa7a('0xa')];this[_0xfa7a('0xf')]=_0x6d5e53['uniqueid'];this[_0xfa7a('0x10')]=_0x429f8a[_0xfa7a('0x11')];this[_0xfa7a('0x12')]=_0x429f8a[_0xfa7a('0x13')];this[_0xfa7a('0x14')]=_0x429f8a['starttime'];this[_0xfa7a('0x15')]=_0x429f8a[_0xfa7a('0x15')];this[_0xfa7a('0x16')]=_0x429f8a[_0xfa7a('0x16')];this[_0xfa7a('0x17')]=_0x429f8a[_0xfa7a('0x17')];this[_0xfa7a('0x18')]=this['droptime'];this[_0xfa7a('0x19')]=utils['getSeconds'](_0x429f8a['responsetime'],_0x429f8a[_0xfa7a('0x14')]);this['holdtime']=utils[_0xfa7a('0x1a')](this[_0xfa7a('0x16')],_0x429f8a[_0xfa7a('0x15')]);this['talktime']=0x0;this['queue']=_0x6d5e53[_0xfa7a('0x5')];this[_0xfa7a('0x1b')]=_0x6d5e53['connectedlinename'];this[_0xfa7a('0x1c')]=_0x6d5e53[_0xfa7a('0x1c')];this[_0xfa7a('0x1d')]=_0x429f8a[_0xfa7a('0x1d')];this[_0xfa7a('0x1e')]=_0x429f8a[_0xfa7a('0x1e')];this[_0xfa7a('0x1f')]=_0x429f8a['callbackat'];this[_0xfa7a('0x20')]=_0x429f8a['recallme'];this[_0xfa7a('0x21')]=_0x429f8a[_0xfa7a('0x21')];this[_0xfa7a('0x22')]=_0x429f8a[_0xfa7a('0x22')];this['UserId']=_0x429f8a[_0xfa7a('0x23')];this[_0xfa7a('0x24')]=_0x429f8a[_0xfa7a('0x24')];this[_0xfa7a('0x25')]=_0x429f8a[_0xfa7a('0x25')];this[_0xfa7a('0x26')]=_0x429f8a['originatecalleridnum']||'';this[_0xfa7a('0x27')]=_0x429f8a[_0xfa7a('0x27')]||'';this['agiafterat']=_0x429f8a['agiafterat'];this[_0xfa7a('0x28')]=_0x429f8a['state'];this[_0xfa7a('0x29')]=_0x429f8a['statedesc'];}module[_0xfa7a('0x2a')]=QueueCallerAbandon;