Built motion from commit (unavailable).|2.5.20
[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 _0x43b1=['/hold','hold','/unhold','/transfer','transfer','exports','express','Router','../../components/auth/service','post','isAuthenticated','canUpdate','originate','/hangup','hangup','/answer','answer'];(function(_0x2bfe28,_0x428889){var _0x93b61e=function(_0x121849){while(--_0x121849){_0x2bfe28['push'](_0x2bfe28['shift']());}};_0x93b61e(++_0x428889);}(_0x43b1,0x7d));var _0x143b=function(_0x5587aa,_0x3cc54d){_0x5587aa=_0x5587aa-0x0;var _0xbaa19=_0x43b1[_0x5587aa];return _0xbaa19;};'use strict';var express=require(_0x143b('0x0'));var router=express[_0x143b('0x1')]();var auth=require(_0x143b('0x2'));var controller=require('./webbar.controller');router[_0x143b('0x3')]('/originate',auth[_0x143b('0x4')](),auth[_0x143b('0x5')](),controller[_0x143b('0x6')]);router[_0x143b('0x3')](_0x143b('0x7'),auth[_0x143b('0x4')](),auth['canUpdate'](),controller[_0x143b('0x8')]);router[_0x143b('0x3')](_0x143b('0x9'),auth['isAuthenticated'](),auth[_0x143b('0x5')](),controller[_0x143b('0xa')]);router[_0x143b('0x3')](_0x143b('0xb'),auth[_0x143b('0x4')](),auth[_0x143b('0x5')](),controller[_0x143b('0xc')]);router['post'](_0x143b('0xd'),auth[_0x143b('0x4')](),auth['canUpdate'](),controller['unhold']);router[_0x143b('0x3')]('/calls',auth[_0x143b('0x4')](),auth[_0x143b('0x5')](),controller['calls']);router[_0x143b('0x3')](_0x143b('0xe'),auth[_0x143b('0x4')](),auth[_0x143b('0x5')](),controller[_0x143b('0xf')]);module[_0x143b('0x10')]=router;