Built motion from commit 9d0783e6.|2.6.13
[motion2.git] / server / services / ami / dialer / models / hangup.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 _0xec6a=['membername','IVR','reason','cause-txt','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','CampaignId','exports','moment','../utils','state','scheduledat','type','campaigntype','outbound','amd','countbusyretry','countcongestionretry','countnoanswerretry','countnosuchnumberretry','countabandonedretry','countmachineretry','countagentrejectretry','countdropretry','uniqueid','name','calleridnum','number','starttime','responsetime','endtime','format','YYYY-MM-DD\x20HH:mm:ss','ringtime','getSeconds','holdtime','talktime','queue'];(function(_0x432682,_0x253044){var _0x463d05=function(_0xa73403){while(--_0xa73403){_0x432682['push'](_0x432682['shift']());}};_0x463d05(++_0x253044);}(_0xec6a,0x1c6));var _0xaec6=function(_0x348007,_0x8ecd4a){_0x348007=_0x348007-0x0;var _0x2082e3=_0xec6a[_0x348007];return _0x2082e3;};'use strict';var moment=require(_0xaec6('0x0'));var utils=require(_0xaec6('0x1'));function Hangup(_0x56695a,_0x197b1d){this[_0xaec6('0x2')]=0x4;this['statedesc']='Answer';this[_0xaec6('0x3')]=_0x56695a[_0xaec6('0x3')];this[_0xaec6('0x4')]=_0x56695a[_0xaec6('0x4')];this[_0xaec6('0x5')]=_0x56695a[_0xaec6('0x4')]===_0xaec6('0x6')?'queue':_0x56695a['type'];this[_0xaec6('0x7')]=_0x56695a[_0xaec6('0x7')]||![];this[_0xaec6('0x8')]=_0x56695a[_0xaec6('0x8')];this['countcongestionretry']=_0x56695a[_0xaec6('0x9')];this['countnoanswerretry']=_0x56695a[_0xaec6('0xa')];this['countglobal']=_0x56695a[_0xaec6('0x8')]+_0x56695a[_0xaec6('0x9')]+_0x56695a[_0xaec6('0xa')]+_0x56695a[_0xaec6('0xb')]+_0x56695a['countdropretry']+_0x56695a[_0xaec6('0xc')]+_0x56695a[_0xaec6('0xd')]+_0x56695a[_0xaec6('0xe')];this[_0xaec6('0xb')]=_0x56695a[_0xaec6('0xb')];this[_0xaec6('0xf')]=_0x56695a[_0xaec6('0xf')];this[_0xaec6('0xc')]=_0x56695a[_0xaec6('0xc')];this['countmachineretry']=_0x56695a[_0xaec6('0xd')];this[_0xaec6('0xe')]=_0x56695a[_0xaec6('0xe')];this[_0xaec6('0x10')]=_0x197b1d[_0xaec6('0x10')];this['calleridname']=_0x56695a[_0xaec6('0x11')];this[_0xaec6('0x12')]=_0x56695a[_0xaec6('0x13')];this[_0xaec6('0x14')]=_0x56695a[_0xaec6('0x14')];this[_0xaec6('0x15')]=_0x56695a['responsetime'];this[_0xaec6('0x16')]=moment()[_0xaec6('0x17')](_0xaec6('0x18'));this[_0xaec6('0x19')]=utils[_0xaec6('0x1a')](_0x56695a[_0xaec6('0x15')],_0x56695a[_0xaec6('0x14')]);this[_0xaec6('0x1b')]=0x0;this[_0xaec6('0x1c')]=utils[_0xaec6('0x1a')](this[_0xaec6('0x16')],_0x56695a[_0xaec6('0x15')]);this[_0xaec6('0x1d')]=_0x56695a[_0xaec6('0x1d')];this[_0xaec6('0x1e')]=_0xaec6('0x1f');this[_0xaec6('0x20')]=_0x197b1d[_0xaec6('0x21')];this[_0xaec6('0x22')]=_0x56695a[_0xaec6('0x22')];this['callbackuniqueid']=_0x56695a[_0xaec6('0x23')];this[_0xaec6('0x24')]=_0x56695a[_0xaec6('0x24')];this['recallme']=_0x56695a[_0xaec6('0x25')];this[_0xaec6('0x26')]=_0x56695a[_0xaec6('0x26')];this['ListId']=_0x56695a[_0xaec6('0x27')];this[_0xaec6('0x28')]=_0x56695a[_0xaec6('0x28')];this['VoiceQueueId']=_0x56695a[_0xaec6('0x29')];this[_0xaec6('0x2a')]=_0x56695a[_0xaec6('0x2a')];}module[_0xaec6('0x2b')]=Hangup;