Built motion from commit (unavailable).|2.5.11
[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 _0x12cc=['/originate','originate','hangup','/answer','answer','/hold','canUpdate','hold','isAuthenticated','unhold','/calls','calls','/transfer','transfer','Router','../../components/auth/service','./webbar.controller','post'];(function(_0x17e721,_0x188768){var _0x13f7bc=function(_0x56c14b){while(--_0x56c14b){_0x17e721['push'](_0x17e721['shift']());}};_0x13f7bc(++_0x188768);}(_0x12cc,0xc2));var _0xc12c=function(_0x4c8d8d,_0x18e4a7){_0x4c8d8d=_0x4c8d8d-0x0;var _0x5422e3=_0x12cc[_0x4c8d8d];return _0x5422e3;};'use strict';var express=require('express');var router=express[_0xc12c('0x0')]();var auth=require(_0xc12c('0x1'));var controller=require(_0xc12c('0x2'));router[_0xc12c('0x3')](_0xc12c('0x4'),auth['isAuthenticated'](),auth['canUpdate'](),controller[_0xc12c('0x5')]);router[_0xc12c('0x3')]('/hangup',auth['isAuthenticated'](),auth['canUpdate'](),controller[_0xc12c('0x6')]);router[_0xc12c('0x3')](_0xc12c('0x7'),auth['isAuthenticated'](),auth['canUpdate'](),controller[_0xc12c('0x8')]);router[_0xc12c('0x3')](_0xc12c('0x9'),auth['isAuthenticated'](),auth[_0xc12c('0xa')](),controller[_0xc12c('0xb')]);router[_0xc12c('0x3')]('/unhold',auth[_0xc12c('0xc')](),auth[_0xc12c('0xa')](),controller[_0xc12c('0xd')]);router[_0xc12c('0x3')](_0xc12c('0xe'),auth[_0xc12c('0xc')](),auth['canUpdate'](),controller[_0xc12c('0xf')]);router[_0xc12c('0x3')](_0xc12c('0x10'),auth['isAuthenticated'](),auth['canUpdate'](),controller[_0xc12c('0x11')]);module['exports']=router;