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