05a89383b1ed559c8a5bd0e0abb2a07f993b086f
[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 _0x9fde=['../utils','state','statedesc','Answer','scheduledat','type','campaigntype','outbound','queue','amd','countbusyretry','countcongestionretry','countnosuchnumberretry','countdropretry','countabandonedretry','countagentrejectretry','uniqueid','calleridname','name','calleridnum','number','starttime','responsetime','endtime','format','YYYY-MM-DD\x20HH:mm:ss','getSeconds','holdtime','talktime','membername','IVR','reason','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','CampaignId','moment'];(function(_0x804071,_0x1c5f98){var _0x43a063=function(_0x4dbab3){while(--_0x4dbab3){_0x804071['push'](_0x804071['shift']());}};_0x43a063(++_0x1c5f98);}(_0x9fde,0x125));var _0xe9fd=function(_0xee5d2a,_0x534134){_0xee5d2a=_0xee5d2a-0x0;var _0x346948=_0x9fde[_0xee5d2a];return _0x346948;};'use strict';var moment=require(_0xe9fd('0x0'));var utils=require(_0xe9fd('0x1'));function Hangup(_0x16ca26,_0x577107){this[_0xe9fd('0x2')]=0x4;this[_0xe9fd('0x3')]=_0xe9fd('0x4');this[_0xe9fd('0x5')]=_0x16ca26[_0xe9fd('0x5')];this['type']=_0x16ca26[_0xe9fd('0x6')];this[_0xe9fd('0x7')]=_0x16ca26[_0xe9fd('0x6')]===_0xe9fd('0x8')?_0xe9fd('0x9'):_0x16ca26[_0xe9fd('0x6')];this[_0xe9fd('0xa')]=_0x16ca26['amd']||![];this[_0xe9fd('0xb')]=_0x16ca26[_0xe9fd('0xb')];this[_0xe9fd('0xc')]=_0x16ca26[_0xe9fd('0xc')];this['countnoanswerretry']=_0x16ca26['countnoanswerretry'];this['countglobal']=_0x16ca26[_0xe9fd('0xb')]+_0x16ca26[_0xe9fd('0xc')]+_0x16ca26['countnoanswerretry']+_0x16ca26[_0xe9fd('0xd')]+_0x16ca26[_0xe9fd('0xe')]+_0x16ca26[_0xe9fd('0xf')]+_0x16ca26['countmachineretry']+_0x16ca26[_0xe9fd('0x10')];this[_0xe9fd('0xd')]=_0x16ca26['countnosuchnumberretry'];this[_0xe9fd('0xe')]=_0x16ca26[_0xe9fd('0xe')];this[_0xe9fd('0xf')]=_0x16ca26['countabandonedretry'];this['countmachineretry']=_0x16ca26['countmachineretry'];this[_0xe9fd('0x10')]=_0x16ca26[_0xe9fd('0x10')];this['uniqueid']=_0x577107[_0xe9fd('0x11')];this[_0xe9fd('0x12')]=_0x16ca26[_0xe9fd('0x13')];this[_0xe9fd('0x14')]=_0x16ca26[_0xe9fd('0x15')];this[_0xe9fd('0x16')]=_0x16ca26[_0xe9fd('0x16')];this['responsetime']=_0x16ca26[_0xe9fd('0x17')];this[_0xe9fd('0x18')]=moment()[_0xe9fd('0x19')](_0xe9fd('0x1a'));this['ringtime']=utils[_0xe9fd('0x1b')](_0x16ca26[_0xe9fd('0x17')],_0x16ca26[_0xe9fd('0x16')]);this[_0xe9fd('0x1c')]=0x0;this[_0xe9fd('0x1d')]=utils[_0xe9fd('0x1b')](this[_0xe9fd('0x18')],_0x16ca26[_0xe9fd('0x17')]);this[_0xe9fd('0x9')]=_0x16ca26['queue'];this[_0xe9fd('0x1e')]=_0xe9fd('0x1f');this[_0xe9fd('0x20')]=_0x577107['cause-txt'];this[_0xe9fd('0x21')]=_0x16ca26['callback'];this[_0xe9fd('0x22')]=_0x16ca26[_0xe9fd('0x22')];this[_0xe9fd('0x23')]=_0x16ca26[_0xe9fd('0x23')];this[_0xe9fd('0x24')]=_0x16ca26[_0xe9fd('0x24')];this[_0xe9fd('0x25')]=_0x16ca26[_0xe9fd('0x25')];this[_0xe9fd('0x26')]=_0x16ca26[_0xe9fd('0x26')];this[_0xe9fd('0x27')]=_0x16ca26[_0xe9fd('0x27')];this[_0xe9fd('0x28')]=_0x16ca26[_0xe9fd('0x28')];this[_0xe9fd('0x29')]=_0x16ca26[_0xe9fd('0x29')];}module['exports']=Hangup;