cbcb082cb401a1bf4024590f0d054924c284b501
[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 _0x16f4=['/answer','answer','/hold','hold','/calls','/transfer','exports','../../components/auth/service','/originate','isAuthenticated','canUpdate','originate','post','/hangup','hangup'];(function(_0x3daf7d,_0x6a61dd){var _0x44288c=function(_0x59e1b6){while(--_0x59e1b6){_0x3daf7d['push'](_0x3daf7d['shift']());}};_0x44288c(++_0x6a61dd);}(_0x16f4,0xbb));var _0x416f=function(_0x321bb2,_0x202794){_0x321bb2=_0x321bb2-0x0;var _0x9c12ed=_0x16f4[_0x321bb2];return _0x9c12ed;};'use strict';var express=require('express');var router=express['Router']();var auth=require(_0x416f('0x0'));var controller=require('./webbar.controller');router['post'](_0x416f('0x1'),auth[_0x416f('0x2')](),auth[_0x416f('0x3')](),controller[_0x416f('0x4')]);router[_0x416f('0x5')](_0x416f('0x6'),auth[_0x416f('0x2')](),auth[_0x416f('0x3')](),controller[_0x416f('0x7')]);router[_0x416f('0x5')](_0x416f('0x8'),auth[_0x416f('0x2')](),auth[_0x416f('0x3')](),controller[_0x416f('0x9')]);router['post'](_0x416f('0xa'),auth[_0x416f('0x2')](),auth[_0x416f('0x3')](),controller[_0x416f('0xb')]);router[_0x416f('0x5')]('/unhold',auth[_0x416f('0x2')](),auth[_0x416f('0x3')](),controller['unhold']);router[_0x416f('0x5')](_0x416f('0xc'),auth[_0x416f('0x2')](),auth[_0x416f('0x3')](),controller['calls']);router[_0x416f('0x5')](_0x416f('0xd'),auth[_0x416f('0x2')](),auth[_0x416f('0x3')](),controller['transfer']);module[_0x416f('0xe')]=router;