1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0x8128=['./webbar.controller','post','canUpdate','originate','isAuthenticated','hangup','hold','/unhold','unhold','calls','/transfer','transfer','exports','express'];(function(_0x37a79c,_0x2b19f0){var _0x561d89=function(_0x19bee3){while(--_0x19bee3){_0x37a79c['push'](_0x37a79c['shift']());}};_0x561d89(++_0x2b19f0);}(_0x8128,0x1b1));var _0x8812=function(_0x13e741,_0x5d3c24){_0x13e741=_0x13e741-0x0;var _0x3f8bb3=_0x8128[_0x13e741];return _0x3f8bb3;};'use strict';var express=require(_0x8812('0x0'));var router=express['Router']();var auth=require('../../components/auth/service');var controller=require(_0x8812('0x1'));router[_0x8812('0x2')]('/originate',auth['isAuthenticated'](),auth[_0x8812('0x3')](),controller[_0x8812('0x4')]);router[_0x8812('0x2')]('/hangup',auth[_0x8812('0x5')](),auth[_0x8812('0x3')](),controller[_0x8812('0x6')]);router[_0x8812('0x2')]('/answer',auth[_0x8812('0x5')](),auth[_0x8812('0x3')](),controller['answer']);router['post']('/hold',auth[_0x8812('0x5')](),auth[_0x8812('0x3')](),controller[_0x8812('0x7')]);router[_0x8812('0x2')](_0x8812('0x8'),auth[_0x8812('0x5')](),auth[_0x8812('0x3')](),controller[_0x8812('0x9')]);router[_0x8812('0x2')]('/calls',auth[_0x8812('0x5')](),auth[_0x8812('0x3')](),controller[_0x8812('0xa')]);router[_0x8812('0x2')](_0x8812('0xb'),auth[_0x8812('0x5')](),auth['canUpdate'](),controller[_0x8812('0xc')]);module[_0x8812('0xd')]=router;