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 _0x682e=['express','Router','../../components/auth/service','./webbar.controller','post','/originate','canUpdate','originate','/hangup','isAuthenticated','hangup','/answer','answer','/hold','hold','/unhold','/calls','calls','/transfer','transfer','exports'];(function(_0x146f3a,_0x268151){var _0x5b7b52=function(_0x1e284c){while(--_0x1e284c){_0x146f3a['push'](_0x146f3a['shift']());}};_0x5b7b52(++_0x268151);}(_0x682e,0x1ce));var _0xe682=function(_0x106920,_0x1ea674){_0x106920=_0x106920-0x0;var _0x54ce4b=_0x682e[_0x106920];return _0x54ce4b;};'use strict';var express=require(_0xe682('0x0'));var router=express[_0xe682('0x1')]();var auth=require(_0xe682('0x2'));var controller=require(_0xe682('0x3'));router[_0xe682('0x4')](_0xe682('0x5'),auth['isAuthenticated'](),auth[_0xe682('0x6')](),controller[_0xe682('0x7')]);router[_0xe682('0x4')](_0xe682('0x8'),auth[_0xe682('0x9')](),auth[_0xe682('0x6')](),controller[_0xe682('0xa')]);router[_0xe682('0x4')](_0xe682('0xb'),auth[_0xe682('0x9')](),auth['canUpdate'](),controller[_0xe682('0xc')]);router[_0xe682('0x4')](_0xe682('0xd'),auth[_0xe682('0x9')](),auth[_0xe682('0x6')](),controller[_0xe682('0xe')]);router['post'](_0xe682('0xf'),auth['isAuthenticated'](),auth[_0xe682('0x6')](),controller['unhold']);router['post'](_0xe682('0x10'),auth[_0xe682('0x9')](),auth[_0xe682('0x6')](),controller[_0xe682('0x11')]);router[_0xe682('0x4')](_0xe682('0x12'),auth['isAuthenticated'](),auth[_0xe682('0x6')](),controller[_0xe682('0x13')]);module[_0xe682('0x14')]=router;