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