Built motion from commit d5e4af8c.|2.6.23
[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 _0x0a13=['outbound','amd','countbusyretry','countcongestionretry','countnoanswerretry','countglobal','countnosuchnumberretry','countabandonedretry','countdropretry','countmachineretry','countagentrejectretry','uniqueid','calleridname','name','calleridnum','starttime','responsetime','format','YYYY-MM-DD\x20HH:mm:ss','getSeconds','talktime','endtime','queue','membername','IVR','callback','callbackuniqueid','callbackat','ContactId','ListId','UserId','VoiceQueueId','exports','moment','../utils','state','Answer','scheduledat','type','campaigntype'];(function(_0x2dc39a,_0x4ed570){var _0x599bc1=function(_0x2bda94){while(--_0x2bda94){_0x2dc39a['push'](_0x2dc39a['shift']());}};_0x599bc1(++_0x4ed570);}(_0x0a13,0x161));var _0x30a1=function(_0x32e264,_0x41cee8){_0x32e264=_0x32e264-0x0;var _0x1d7175=_0x0a13[_0x32e264];return _0x1d7175;};'use strict';var moment=require(_0x30a1('0x0'));var utils=require(_0x30a1('0x1'));function Hangup(_0x20e9bf,_0x3fcfdf){this[_0x30a1('0x2')]=0x4;this['statedesc']=_0x30a1('0x3');this['scheduledat']=_0x20e9bf[_0x30a1('0x4')];this[_0x30a1('0x5')]=_0x20e9bf[_0x30a1('0x5')];this[_0x30a1('0x6')]=_0x20e9bf[_0x30a1('0x5')]===_0x30a1('0x7')?'queue':_0x20e9bf[_0x30a1('0x5')];this['amd']=_0x20e9bf[_0x30a1('0x8')]||![];this['countbusyretry']=_0x20e9bf[_0x30a1('0x9')];this[_0x30a1('0xa')]=_0x20e9bf[_0x30a1('0xa')];this['countnoanswerretry']=_0x20e9bf[_0x30a1('0xb')];this[_0x30a1('0xc')]=_0x20e9bf['countbusyretry']+_0x20e9bf[_0x30a1('0xa')]+_0x20e9bf[_0x30a1('0xb')]+_0x20e9bf[_0x30a1('0xd')]+_0x20e9bf['countdropretry']+_0x20e9bf[_0x30a1('0xe')]+_0x20e9bf['countmachineretry']+_0x20e9bf['countagentrejectretry'];this[_0x30a1('0xd')]=_0x20e9bf[_0x30a1('0xd')];this[_0x30a1('0xf')]=_0x20e9bf['countdropretry'];this['countabandonedretry']=_0x20e9bf[_0x30a1('0xe')];this[_0x30a1('0x10')]=_0x20e9bf[_0x30a1('0x10')];this[_0x30a1('0x11')]=_0x20e9bf['countagentrejectretry'];this[_0x30a1('0x12')]=_0x3fcfdf[_0x30a1('0x12')];this[_0x30a1('0x13')]=_0x20e9bf[_0x30a1('0x14')];this[_0x30a1('0x15')]=_0x20e9bf['number'];this['starttime']=_0x20e9bf[_0x30a1('0x16')];this['responsetime']=_0x20e9bf[_0x30a1('0x17')];this['endtime']=moment()[_0x30a1('0x18')](_0x30a1('0x19'));this['ringtime']=utils[_0x30a1('0x1a')](_0x20e9bf[_0x30a1('0x17')],_0x20e9bf[_0x30a1('0x16')]);this['holdtime']=0x0;this[_0x30a1('0x1b')]=utils[_0x30a1('0x1a')](this[_0x30a1('0x1c')],_0x20e9bf[_0x30a1('0x17')]);this[_0x30a1('0x1d')]=_0x20e9bf['queue'];this[_0x30a1('0x1e')]=_0x30a1('0x1f');this['reason']=_0x3fcfdf['cause-txt'];this[_0x30a1('0x20')]=_0x20e9bf[_0x30a1('0x20')];this['callbackuniqueid']=_0x20e9bf[_0x30a1('0x21')];this[_0x30a1('0x22')]=_0x20e9bf[_0x30a1('0x22')];this['recallme']=_0x20e9bf['recallme'];this[_0x30a1('0x23')]=_0x20e9bf[_0x30a1('0x23')];this[_0x30a1('0x24')]=_0x20e9bf[_0x30a1('0x24')];this[_0x30a1('0x25')]=_0x20e9bf[_0x30a1('0x25')];this[_0x30a1('0x26')]=_0x20e9bf[_0x30a1('0x26')];this['CampaignId']=_0x20e9bf['CampaignId'];}module[_0x30a1('0x27')]=Hangup;