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