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 _0xad95=['canUpdate','answer','/hold','hold','/unhold','unhold','/calls','calls','/transfer','exports','express','Router','../../components/auth/service','/originate','isAuthenticated','post','/answer'];(function(_0xc0e2fc,_0x39da5c){var _0x5ea9d3=function(_0x29d136){while(--_0x29d136){_0xc0e2fc['push'](_0xc0e2fc['shift']());}};_0x5ea9d3(++_0x39da5c);}(_0xad95,0x70));var _0x5ad9=function(_0x1595b5,_0x3acb8e){_0x1595b5=_0x1595b5-0x0;var _0x3f86fa=_0xad95[_0x1595b5];return _0x3f86fa;};'use strict';var express=require(_0x5ad9('0x0'));var router=express[_0x5ad9('0x1')]();var auth=require(_0x5ad9('0x2'));var controller=require('./webbar.controller');router['post'](_0x5ad9('0x3'),auth[_0x5ad9('0x4')](),auth['canUpdate'](),controller['originate']);router[_0x5ad9('0x5')]('/hangup',auth['isAuthenticated'](),auth['canUpdate'](),controller['hangup']);router[_0x5ad9('0x5')](_0x5ad9('0x6'),auth[_0x5ad9('0x4')](),auth[_0x5ad9('0x7')](),controller[_0x5ad9('0x8')]);router['post'](_0x5ad9('0x9'),auth['isAuthenticated'](),auth['canUpdate'](),controller[_0x5ad9('0xa')]);router[_0x5ad9('0x5')](_0x5ad9('0xb'),auth['isAuthenticated'](),auth[_0x5ad9('0x7')](),controller[_0x5ad9('0xc')]);router['post'](_0x5ad9('0xd'),auth[_0x5ad9('0x4')](),auth[_0x5ad9('0x7')](),controller[_0x5ad9('0xe')]);router[_0x5ad9('0x5')](_0x5ad9('0xf'),auth['isAuthenticated'](),auth['canUpdate'](),controller['transfer']);module[_0x5ad9('0x10')]=router;