d1089aecb5a601891b703380b1d882419f7be4dd
[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 _0x652b=['/hold','isAuthenticated','/unhold','unhold','/calls','/transfer','express','Router','../../components/auth/service','post','canUpdate','originate','/answer','answer'];(function(_0x2ef8f1,_0x1280a3){var _0x17498d=function(_0xd20876){while(--_0xd20876){_0x2ef8f1['push'](_0x2ef8f1['shift']());}};_0x17498d(++_0x1280a3);}(_0x652b,0x68));var _0xb652=function(_0x3fb030,_0x12aebe){_0x3fb030=_0x3fb030-0x0;var _0xd6899b=_0x652b[_0x3fb030];return _0xd6899b;};'use strict';var express=require(_0xb652('0x0'));var router=express[_0xb652('0x1')]();var auth=require(_0xb652('0x2'));var controller=require('./webbar.controller');router[_0xb652('0x3')]('/originate',auth['isAuthenticated'](),auth[_0xb652('0x4')](),controller[_0xb652('0x5')]);router[_0xb652('0x3')]('/hangup',auth['isAuthenticated'](),auth[_0xb652('0x4')](),controller['hangup']);router['post'](_0xb652('0x6'),auth['isAuthenticated'](),auth[_0xb652('0x4')](),controller[_0xb652('0x7')]);router[_0xb652('0x3')](_0xb652('0x8'),auth[_0xb652('0x9')](),auth[_0xb652('0x4')](),controller['hold']);router['post'](_0xb652('0xa'),auth[_0xb652('0x9')](),auth[_0xb652('0x4')](),controller[_0xb652('0xb')]);router['post'](_0xb652('0xc'),auth[_0xb652('0x9')](),auth[_0xb652('0x4')](),controller['calls']);router[_0xb652('0x3')](_0xb652('0xd'),auth['isAuthenticated'](),auth['canUpdate'](),controller['transfer']);module['exports']=router;