a6b356cd69e767b8263468e19d1e57f99c1b11f5
[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 _0x8d97=['calls','/transfer','transfer','exports','Router','../../components/auth/service','post','/originate','isAuthenticated','canUpdate','originate','/hangup','answer','/hold','hold','/unhold','unhold','/calls'];(function(_0x1c8e15,_0x1a7c23){var _0x410531=function(_0x3f028b){while(--_0x3f028b){_0x1c8e15['push'](_0x1c8e15['shift']());}};_0x410531(++_0x1a7c23);}(_0x8d97,0x82));var _0x78d9=function(_0x5391fb,_0x786bf0){_0x5391fb=_0x5391fb-0x0;var _0x1b3ef3=_0x8d97[_0x5391fb];return _0x1b3ef3;};'use strict';var express=require('express');var router=express[_0x78d9('0x0')]();var auth=require(_0x78d9('0x1'));var controller=require('./webbar.controller');router[_0x78d9('0x2')](_0x78d9('0x3'),auth[_0x78d9('0x4')](),auth[_0x78d9('0x5')](),controller[_0x78d9('0x6')]);router['post'](_0x78d9('0x7'),auth[_0x78d9('0x4')](),auth[_0x78d9('0x5')](),controller['hangup']);router['post']('/answer',auth[_0x78d9('0x4')](),auth[_0x78d9('0x5')](),controller[_0x78d9('0x8')]);router[_0x78d9('0x2')](_0x78d9('0x9'),auth[_0x78d9('0x4')](),auth['canUpdate'](),controller[_0x78d9('0xa')]);router[_0x78d9('0x2')](_0x78d9('0xb'),auth['isAuthenticated'](),auth['canUpdate'](),controller[_0x78d9('0xc')]);router[_0x78d9('0x2')](_0x78d9('0xd'),auth[_0x78d9('0x4')](),auth[_0x78d9('0x5')](),controller[_0x78d9('0xe')]);router['post'](_0x78d9('0xf'),auth[_0x78d9('0x4')](),auth[_0x78d9('0x5')](),controller[_0x78d9('0x10')]);module[_0x78d9('0x11')]=router;