Built motion from commit 0900f080.|2.5.45
[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 _0xf547=['outbound','Called\x20Number','Member\x20Name','membername','UniqueId','starttime','***\x20Time\x20Info\x20***','Answer\x20Time','Complete\x20Time','endtime','duration','billableseconds','getSubjects','toLowerCase','inbound','push','variable','queue','calleridnum','string','Outbound\x20Call','getDescriptions','voice','***\x20Call\x20Info\x20***','Caller\x20Number','keyValue','calleridname','Call\x20To','destexten','Queue','uniqueid','Date','***\x20Agent\x20Info\x20***','Agent\x20Name','destcalleridname','Agent\x20Number','destcalleridnum','agentcalledAt','Agent\x20Connect','agentconnectAt','Agent\x20Complete','agentcompleteAt','Hold\x20Time','Talk\x20Time'];(function(_0x32ce61,_0x2ba733){var _0x28eded=function(_0x34db11){while(--_0x34db11){_0x32ce61['push'](_0x32ce61['shift']());}};_0x28eded(++_0x2ba733);}(_0xf547,0x1c4));var _0x7f54=function(_0x138f59,_0x1b53fb){_0x138f59=_0x138f59-0x0;var _0x3d114d=_0xf547[_0x138f59];return _0x3d114d;};'use strict';exports[_0x7f54('0x0')]=function(_0x559f6a,_0x98c5d8){var _0x5d5a51=[{'type':'string','content':'[xCALLY\x20Ticket]','variableName':null}];switch(_0x559f6a['toLowerCase']()){case'voice':switch(_0x98c5d8[_0x7f54('0x1')]()){case _0x7f54('0x2'):_0x5d5a51[_0x7f54('0x3')]({'type':_0x7f54('0x4'),'content':'','variableName':_0x7f54('0x5')});_0x5d5a51[_0x7f54('0x3')]({'type':'variable','content':'','variableName':_0x7f54('0x6')});break;case'outbound':_0x5d5a51[_0x7f54('0x3')]({'type':_0x7f54('0x7'),'content':_0x7f54('0x8'),'variableName':null});_0x5d5a51[_0x7f54('0x3')]({'type':_0x7f54('0x4'),'content':'','variableName':'destcalleridnum'});break;}}return _0x5d5a51;};exports[_0x7f54('0x9')]=function(_0x2487b6,_0x432270){var _0x2aab67=[];switch(_0x2487b6[_0x7f54('0x1')]()){case _0x7f54('0xa'):switch(_0x432270[_0x7f54('0x1')]()){case'inbound':_0x2aab67=[{'type':_0x7f54('0x7'),'content':_0x7f54('0xb'),'key':null,'keyType':null,'variableName':null},{'type':'keyValue','content':'','key':_0x7f54('0xc'),'keyType':_0x7f54('0x4'),'variableName':_0x7f54('0x6')},{'type':_0x7f54('0xd'),'content':'','key':'Caller\x20Name','keyType':'variable','variableName':_0x7f54('0xe')},{'type':_0x7f54('0xd'),'content':'','key':_0x7f54('0xf'),'keyType':_0x7f54('0x4'),'variableName':_0x7f54('0x10')},{'type':_0x7f54('0xd'),'content':'','key':_0x7f54('0x11'),'keyType':_0x7f54('0x4'),'variableName':_0x7f54('0x5')},{'type':_0x7f54('0xd'),'content':'','key':'UniqueId','keyType':'variable','variableName':_0x7f54('0x12')},{'type':_0x7f54('0xd'),'content':'','key':_0x7f54('0x13'),'keyType':_0x7f54('0x4'),'variableName':'agentcalledAt'},{'type':'string','content':_0x7f54('0x14'),'key':null,'keyType':null,'variableName':null},{'type':_0x7f54('0xd'),'content':'','key':_0x7f54('0x15'),'keyType':_0x7f54('0x4'),'variableName':_0x7f54('0x16')},{'type':_0x7f54('0xd'),'content':'','key':_0x7f54('0x17'),'keyType':_0x7f54('0x4'),'variableName':_0x7f54('0x18')},{'type':_0x7f54('0x7'),'content':'***\x20Time\x20Info\x20***','key':null,'keyType':null,'variableName':null},{'type':_0x7f54('0xd'),'content':'','key':'Agent\x20Ring','keyType':_0x7f54('0x4'),'variableName':_0x7f54('0x19')},{'type':_0x7f54('0xd'),'content':'','key':_0x7f54('0x1a'),'keyType':_0x7f54('0x4'),'variableName':_0x7f54('0x1b')},{'type':'keyValue','content':'','key':_0x7f54('0x1c'),'keyType':'variable','variableName':_0x7f54('0x1d')},{'type':_0x7f54('0xd'),'content':'','key':_0x7f54('0x1e'),'keyType':'variable','variableName':'holdtime'},{'type':_0x7f54('0xd'),'content':'','key':_0x7f54('0x1f'),'keyType':_0x7f54('0x4'),'variableName':'talktime'}];break;case _0x7f54('0x20'):_0x2aab67=[{'type':_0x7f54('0x7'),'content':_0x7f54('0xb'),'variableName':null},{'type':_0x7f54('0xd'),'content':'','key':_0x7f54('0x21'),'keyType':_0x7f54('0x4'),'keyContent':'','variableName':_0x7f54('0x18')},{'type':_0x7f54('0xd'),'content':'','key':_0x7f54('0x22'),'keyType':_0x7f54('0x4'),'keyContent':'','variableName':_0x7f54('0x23')},{'type':_0x7f54('0xd'),'content':'','key':_0x7f54('0x24'),'keyType':'variable','keyContent':'','variableName':_0x7f54('0x12')},{'type':_0x7f54('0xd'),'content':'','key':_0x7f54('0x13'),'keyType':_0x7f54('0x4'),'keyContent':'','variableName':_0x7f54('0x25')},{'type':_0x7f54('0x7'),'content':_0x7f54('0x26')},{'type':_0x7f54('0xd'),'content':'','key':_0x7f54('0x27'),'keyType':_0x7f54('0x4'),'keyContent':'','variableName':'answertime'},{'type':_0x7f54('0xd'),'content':'','key':_0x7f54('0x28'),'keyType':_0x7f54('0x4'),'keyContent':'','variableName':_0x7f54('0x29')},{'type':_0x7f54('0xd'),'content':'','key':'Duration','keyType':_0x7f54('0x4'),'keyContent':'','variableName':_0x7f54('0x2a')},{'type':_0x7f54('0xd'),'content':'','key':'Billable\x20Time','keyType':_0x7f54('0x4'),'keyContent':'','variableName':_0x7f54('0x2b')}];break;}}return _0x2aab67;};