2f896d20d7e15b3006e856b16748593f429858d3
[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 _0x9099=['/originate','isAuthenticated','canUpdate','originate','/hangup','hangup','/answer','/unhold','unhold','/calls','calls','/transfer','transfer','exports','express','../../components/auth/service','./webbar.controller','post'];(function(_0x545dd8,_0x404f75){var _0x44cd80=function(_0xec3ca3){while(--_0xec3ca3){_0x545dd8['push'](_0x545dd8['shift']());}};_0x44cd80(++_0x404f75);}(_0x9099,0x1ac));var _0x9909=function(_0x7275e9,_0x321fa5){_0x7275e9=_0x7275e9-0x0;var _0x17b99d=_0x9099[_0x7275e9];return _0x17b99d;};'use strict';var express=require(_0x9909('0x0'));var router=express['Router']();var auth=require(_0x9909('0x1'));var controller=require(_0x9909('0x2'));router[_0x9909('0x3')](_0x9909('0x4'),auth[_0x9909('0x5')](),auth[_0x9909('0x6')](),controller[_0x9909('0x7')]);router[_0x9909('0x3')](_0x9909('0x8'),auth[_0x9909('0x5')](),auth[_0x9909('0x6')](),controller[_0x9909('0x9')]);router[_0x9909('0x3')](_0x9909('0xa'),auth['isAuthenticated'](),auth[_0x9909('0x6')](),controller['answer']);router['post']('/hold',auth['isAuthenticated'](),auth[_0x9909('0x6')](),controller['hold']);router[_0x9909('0x3')](_0x9909('0xb'),auth[_0x9909('0x5')](),auth['canUpdate'](),controller[_0x9909('0xc')]);router['post'](_0x9909('0xd'),auth[_0x9909('0x5')](),auth[_0x9909('0x6')](),controller[_0x9909('0xe')]);router[_0x9909('0x3')](_0x9909('0xf'),auth[_0x9909('0x5')](),auth[_0x9909('0x6')](),controller[_0x9909('0x10')]);module[_0x9909('0x11')]=router;