Built motion from commit 14588770.|2.5.38
[motion2.git] / server / components / integrations / configuration.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 _0x610e=['destcalleridname','destcalleridnum','***\x20Time\x20Info\x20***','Agent\x20Ring','agentcalledAt','Agent\x20Connect','agentconnectAt','Agent\x20Complete','agentcompleteAt','holdtime','Talk\x20Time','talktime','Called\x20Number','Member\x20Name','membername','Date','starttime','Answer\x20Time','answertime','Duration','getSubjects','string','toLowerCase','voice','inbound','push','variable','calleridnum','outbound','Outbound\x20Call','getDescriptions','***\x20Call\x20Info\x20***','keyValue','Caller\x20Number','Caller\x20Name','calleridname','Queue','queue','UniqueId','uniqueid','***\x20Agent\x20Info\x20***','Agent\x20Name'];(function(_0x19326f,_0x2e133a){var _0x3fc2b3=function(_0x4a3153){while(--_0x4a3153){_0x19326f['push'](_0x19326f['shift']());}};_0x3fc2b3(++_0x2e133a);}(_0x610e,0xbc));var _0xe610=function(_0x1c1e26,_0x58213c){_0x1c1e26=_0x1c1e26-0x0;var _0x13d07f=_0x610e[_0x1c1e26];return _0x13d07f;};'use strict';exports[_0xe610('0x0')]=function(_0x433d62,_0x5ad69d){var _0xb91b10=[{'type':_0xe610('0x1'),'content':'[xCALLY\x20Ticket]','variableName':null}];switch(_0x433d62[_0xe610('0x2')]()){case _0xe610('0x3'):switch(_0x5ad69d[_0xe610('0x2')]()){case _0xe610('0x4'):_0xb91b10[_0xe610('0x5')]({'type':_0xe610('0x6'),'content':'','variableName':'queue'});_0xb91b10[_0xe610('0x5')]({'type':'variable','content':'','variableName':_0xe610('0x7')});break;case _0xe610('0x8'):_0xb91b10[_0xe610('0x5')]({'type':_0xe610('0x1'),'content':_0xe610('0x9'),'variableName':null});_0xb91b10['push']({'type':_0xe610('0x6'),'content':'','variableName':'destcalleridnum'});break;}}return _0xb91b10;};exports[_0xe610('0xa')]=function(_0xa4cdec,_0x5cc5f7){var _0x4dc953=[];switch(_0xa4cdec[_0xe610('0x2')]()){case'voice':switch(_0x5cc5f7['toLowerCase']()){case'inbound':_0x4dc953=[{'type':_0xe610('0x1'),'content':_0xe610('0xb'),'key':null,'keyType':null,'variableName':null},{'type':_0xe610('0xc'),'content':'','key':_0xe610('0xd'),'keyType':'variable','variableName':_0xe610('0x7')},{'type':_0xe610('0xc'),'content':'','key':_0xe610('0xe'),'keyType':_0xe610('0x6'),'variableName':_0xe610('0xf')},{'type':_0xe610('0xc'),'content':'','key':'Call\x20To','keyType':'variable','variableName':'destexten'},{'type':_0xe610('0xc'),'content':'','key':_0xe610('0x10'),'keyType':'variable','variableName':_0xe610('0x11')},{'type':_0xe610('0xc'),'content':'','key':_0xe610('0x12'),'keyType':'variable','variableName':_0xe610('0x13')},{'type':_0xe610('0xc'),'content':'','key':'Date','keyType':'variable','variableName':'agentcalledAt'},{'type':'string','content':_0xe610('0x14'),'key':null,'keyType':null,'variableName':null},{'type':_0xe610('0xc'),'content':'','key':_0xe610('0x15'),'keyType':_0xe610('0x6'),'variableName':_0xe610('0x16')},{'type':'keyValue','content':'','key':'Agent\x20Number','keyType':_0xe610('0x6'),'variableName':_0xe610('0x17')},{'type':_0xe610('0x1'),'content':_0xe610('0x18'),'key':null,'keyType':null,'variableName':null},{'type':_0xe610('0xc'),'content':'','key':_0xe610('0x19'),'keyType':'variable','variableName':_0xe610('0x1a')},{'type':_0xe610('0xc'),'content':'','key':_0xe610('0x1b'),'keyType':_0xe610('0x6'),'variableName':_0xe610('0x1c')},{'type':_0xe610('0xc'),'content':'','key':_0xe610('0x1d'),'keyType':'variable','variableName':_0xe610('0x1e')},{'type':'keyValue','content':'','key':'Hold\x20Time','keyType':_0xe610('0x6'),'variableName':_0xe610('0x1f')},{'type':_0xe610('0xc'),'content':'','key':_0xe610('0x20'),'keyType':'variable','variableName':_0xe610('0x21')}];break;case _0xe610('0x8'):_0x4dc953=[{'type':_0xe610('0x1'),'content':_0xe610('0xb'),'variableName':null},{'type':_0xe610('0xc'),'content':'','key':_0xe610('0x22'),'keyType':_0xe610('0x6'),'keyContent':'','variableName':_0xe610('0x17')},{'type':'keyValue','content':'','key':_0xe610('0x23'),'keyType':_0xe610('0x6'),'keyContent':'','variableName':_0xe610('0x24')},{'type':'keyValue','content':'','key':_0xe610('0x12'),'keyType':_0xe610('0x6'),'keyContent':'','variableName':_0xe610('0x13')},{'type':_0xe610('0xc'),'content':'','key':_0xe610('0x25'),'keyType':_0xe610('0x6'),'keyContent':'','variableName':_0xe610('0x26')},{'type':_0xe610('0x1'),'content':'***\x20Time\x20Info\x20***'},{'type':_0xe610('0xc'),'content':'','key':_0xe610('0x27'),'keyType':_0xe610('0x6'),'keyContent':'','variableName':_0xe610('0x28')},{'type':_0xe610('0xc'),'content':'','key':'Complete\x20Time','keyType':_0xe610('0x6'),'keyContent':'','variableName':'endtime'},{'type':_0xe610('0xc'),'content':'','key':_0xe610('0x29'),'keyType':_0xe610('0x6'),'keyContent':'','variableName':'duration'},{'type':'keyValue','content':'','key':'Billable\x20Time','keyType':_0xe610('0x6'),'keyContent':'','variableName':'billableseconds'}];break;}}return _0x4dc953;};