Built motion from commit 3c2ce842.|2.6.31
[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 _0x162b=['Called\x20Number','Member\x20Name','membername','***\x20Time\x20Info\x20***','Answer\x20Time','answertime','Complete\x20Time','Duration','Billable\x20Time','billableseconds','string','[xCALLY\x20Ticket]','voice','toLowerCase','inbound','push','variable','queue','calleridnum','outbound','Outbound\x20Call','getDescriptions','***\x20Call\x20Info\x20***','keyValue','Caller\x20Number','Caller\x20Name','calleridname','Call\x20To','uniqueid','Date','***\x20Agent\x20Info\x20***','Agent\x20Name','Agent\x20Number','destcalleridnum','agentcalledAt','Agent\x20Connect','agentconnectAt','Agent\x20Complete','holdtime'];(function(_0x56179f,_0x8495d6){var _0x56052f=function(_0x71d66){while(--_0x71d66){_0x56179f['push'](_0x56179f['shift']());}};_0x56052f(++_0x8495d6);}(_0x162b,0xcd));var _0xb162=function(_0x58ac9b,_0x35dc04){_0x58ac9b=_0x58ac9b-0x0;var _0x12a47d=_0x162b[_0x58ac9b];return _0x12a47d;};'use strict';exports['getSubjects']=function(_0x2d4185,_0x34d544){var _0x46f6a9=[{'type':_0xb162('0x0'),'content':_0xb162('0x1'),'variableName':null}];switch(_0x2d4185['toLowerCase']()){case _0xb162('0x2'):switch(_0x34d544[_0xb162('0x3')]()){case _0xb162('0x4'):_0x46f6a9[_0xb162('0x5')]({'type':_0xb162('0x6'),'content':'','variableName':_0xb162('0x7')});_0x46f6a9['push']({'type':_0xb162('0x6'),'content':'','variableName':_0xb162('0x8')});break;case _0xb162('0x9'):_0x46f6a9['push']({'type':'string','content':_0xb162('0xa'),'variableName':null});_0x46f6a9[_0xb162('0x5')]({'type':'variable','content':'','variableName':'destcalleridnum'});break;}}return _0x46f6a9;};exports[_0xb162('0xb')]=function(_0x194a5d,_0x2fe184){var _0x18af5b=[];switch(_0x194a5d['toLowerCase']()){case'voice':switch(_0x2fe184[_0xb162('0x3')]()){case'inbound':_0x18af5b=[{'type':_0xb162('0x0'),'content':_0xb162('0xc'),'key':null,'keyType':null,'variableName':null},{'type':_0xb162('0xd'),'content':'','key':_0xb162('0xe'),'keyType':'variable','variableName':_0xb162('0x8')},{'type':_0xb162('0xd'),'content':'','key':_0xb162('0xf'),'keyType':_0xb162('0x6'),'variableName':_0xb162('0x10')},{'type':_0xb162('0xd'),'content':'','key':_0xb162('0x11'),'keyType':_0xb162('0x6'),'variableName':'destexten'},{'type':_0xb162('0xd'),'content':'','key':'Queue','keyType':'variable','variableName':_0xb162('0x7')},{'type':_0xb162('0xd'),'content':'','key':'UniqueId','keyType':_0xb162('0x6'),'variableName':_0xb162('0x12')},{'type':_0xb162('0xd'),'content':'','key':_0xb162('0x13'),'keyType':_0xb162('0x6'),'variableName':'agentcalledAt'},{'type':_0xb162('0x0'),'content':_0xb162('0x14'),'key':null,'keyType':null,'variableName':null},{'type':_0xb162('0xd'),'content':'','key':_0xb162('0x15'),'keyType':_0xb162('0x6'),'variableName':'destcalleridname'},{'type':_0xb162('0xd'),'content':'','key':_0xb162('0x16'),'keyType':_0xb162('0x6'),'variableName':_0xb162('0x17')},{'type':_0xb162('0x0'),'content':'***\x20Time\x20Info\x20***','key':null,'keyType':null,'variableName':null},{'type':_0xb162('0xd'),'content':'','key':'Agent\x20Ring','keyType':_0xb162('0x6'),'variableName':_0xb162('0x18')},{'type':_0xb162('0xd'),'content':'','key':_0xb162('0x19'),'keyType':_0xb162('0x6'),'variableName':_0xb162('0x1a')},{'type':_0xb162('0xd'),'content':'','key':_0xb162('0x1b'),'keyType':_0xb162('0x6'),'variableName':'agentcompleteAt'},{'type':'keyValue','content':'','key':'Hold\x20Time','keyType':'variable','variableName':_0xb162('0x1c')},{'type':_0xb162('0xd'),'content':'','key':'Talk\x20Time','keyType':_0xb162('0x6'),'variableName':'talktime'}];break;case'outbound':_0x18af5b=[{'type':_0xb162('0x0'),'content':_0xb162('0xc'),'variableName':null},{'type':_0xb162('0xd'),'content':'','key':_0xb162('0x1d'),'keyType':'variable','keyContent':'','variableName':_0xb162('0x17')},{'type':'keyValue','content':'','key':_0xb162('0x1e'),'keyType':_0xb162('0x6'),'keyContent':'','variableName':_0xb162('0x1f')},{'type':_0xb162('0xd'),'content':'','key':'UniqueId','keyType':_0xb162('0x6'),'keyContent':'','variableName':'uniqueid'},{'type':_0xb162('0xd'),'content':'','key':_0xb162('0x13'),'keyType':_0xb162('0x6'),'keyContent':'','variableName':'starttime'},{'type':'string','content':_0xb162('0x20')},{'type':_0xb162('0xd'),'content':'','key':_0xb162('0x21'),'keyType':'variable','keyContent':'','variableName':_0xb162('0x22')},{'type':'keyValue','content':'','key':_0xb162('0x23'),'keyType':_0xb162('0x6'),'keyContent':'','variableName':'endtime'},{'type':'keyValue','content':'','key':_0xb162('0x24'),'keyType':_0xb162('0x6'),'keyContent':'','variableName':'duration'},{'type':'keyValue','content':'','key':_0xb162('0x25'),'keyType':'variable','keyContent':'','variableName':_0xb162('0x26')}];break;}}return _0x18af5b;};