511148776cbbc69a40d2b14ecabe9d143dbc58a2
[motion2.git] / server / api / webbar / index.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 _0x03bc=['answer','/hold','/transfer','transfer','express','../../components/auth/service','./webbar.controller','/originate','canUpdate','originate','post','/hangup','isAuthenticated','hangup','/answer'];(function(_0x2ea00b,_0x2f81d4){var _0x56d680=function(_0x5ac2da){while(--_0x5ac2da){_0x2ea00b['push'](_0x2ea00b['shift']());}};_0x56d680(++_0x2f81d4);}(_0x03bc,0xb8));var _0xc03b=function(_0x1d6f9e,_0x1b9d3e){_0x1d6f9e=_0x1d6f9e-0x0;var _0x20a7c3=_0x03bc[_0x1d6f9e];return _0x20a7c3;};'use strict';var express=require(_0xc03b('0x0'));var router=express['Router']();var auth=require(_0xc03b('0x1'));var controller=require(_0xc03b('0x2'));router['post'](_0xc03b('0x3'),auth['isAuthenticated'](),auth[_0xc03b('0x4')](),controller[_0xc03b('0x5')]);router[_0xc03b('0x6')](_0xc03b('0x7'),auth[_0xc03b('0x8')](),auth['canUpdate'](),controller[_0xc03b('0x9')]);router['post'](_0xc03b('0xa'),auth[_0xc03b('0x8')](),auth[_0xc03b('0x4')](),controller[_0xc03b('0xb')]);router[_0xc03b('0x6')](_0xc03b('0xc'),auth[_0xc03b('0x8')](),auth[_0xc03b('0x4')](),controller['hold']);router[_0xc03b('0x6')]('/unhold',auth['isAuthenticated'](),auth['canUpdate'](),controller['unhold']);router[_0xc03b('0x6')]('/calls',auth['isAuthenticated'](),auth['canUpdate'](),controller['calls']);router[_0xc03b('0x6')](_0xc03b('0xd'),auth[_0xc03b('0x8')](),auth[_0xc03b('0x4')](),controller[_0xc03b('0xe')]);module['exports']=router;