bffade804dc6141b61ae5e5682b8017a793d4a57
[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 _0xea37=['canUpdate','originate','post','/hangup','isAuthenticated','hangup','/answer','/hold','hold','unhold','/calls','/transfer','transfer','express','./webbar.controller','/originate'];(function(_0xb833b1,_0x1c3d3f){var _0x1ab87a=function(_0x1c9f6c){while(--_0x1c9f6c){_0xb833b1['push'](_0xb833b1['shift']());}};_0x1ab87a(++_0x1c3d3f);}(_0xea37,0x12d));var _0x7ea3=function(_0x2ad308,_0x59426a){_0x2ad308=_0x2ad308-0x0;var _0x442d2a=_0xea37[_0x2ad308];return _0x442d2a;};'use strict';var express=require(_0x7ea3('0x0'));var router=express['Router']();var auth=require('../../components/auth/service');var controller=require(_0x7ea3('0x1'));router['post'](_0x7ea3('0x2'),auth['isAuthenticated'](),auth[_0x7ea3('0x3')](),controller[_0x7ea3('0x4')]);router[_0x7ea3('0x5')](_0x7ea3('0x6'),auth[_0x7ea3('0x7')](),auth[_0x7ea3('0x3')](),controller[_0x7ea3('0x8')]);router[_0x7ea3('0x5')](_0x7ea3('0x9'),auth[_0x7ea3('0x7')](),auth[_0x7ea3('0x3')](),controller['answer']);router[_0x7ea3('0x5')](_0x7ea3('0xa'),auth[_0x7ea3('0x7')](),auth[_0x7ea3('0x3')](),controller[_0x7ea3('0xb')]);router[_0x7ea3('0x5')]('/unhold',auth[_0x7ea3('0x7')](),auth[_0x7ea3('0x3')](),controller[_0x7ea3('0xc')]);router['post'](_0x7ea3('0xd'),auth[_0x7ea3('0x7')](),auth['canUpdate'](),controller['calls']);router[_0x7ea3('0x5')](_0x7ea3('0xe'),auth[_0x7ea3('0x7')](),auth[_0x7ea3('0x3')](),controller[_0x7ea3('0xf')]);module['exports']=router;