Built motion from commit (unavailable).|2.4.21
[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 _0x1c42=['/answer','/hold','hold','/unhold','calls','/transfer','transfer','exports','Router','../../components/auth/service','./webbar.controller','/originate','isAuthenticated','canUpdate','originate','post','/hangup'];(function(_0x134c79,_0x2136d3){var _0x2c2142=function(_0x537f61){while(--_0x537f61){_0x134c79['push'](_0x134c79['shift']());}};_0x2c2142(++_0x2136d3);}(_0x1c42,0x13a));var _0x21c4=function(_0xab4add,_0x429ddc){_0xab4add=_0xab4add-0x0;var _0x3b4253=_0x1c42[_0xab4add];return _0x3b4253;};'use strict';var express=require('express');var router=express[_0x21c4('0x0')]();var auth=require(_0x21c4('0x1'));var controller=require(_0x21c4('0x2'));router['post'](_0x21c4('0x3'),auth[_0x21c4('0x4')](),auth[_0x21c4('0x5')](),controller[_0x21c4('0x6')]);router[_0x21c4('0x7')](_0x21c4('0x8'),auth[_0x21c4('0x4')](),auth[_0x21c4('0x5')](),controller['hangup']);router[_0x21c4('0x7')](_0x21c4('0x9'),auth['isAuthenticated'](),auth[_0x21c4('0x5')](),controller['answer']);router[_0x21c4('0x7')](_0x21c4('0xa'),auth[_0x21c4('0x4')](),auth[_0x21c4('0x5')](),controller[_0x21c4('0xb')]);router[_0x21c4('0x7')](_0x21c4('0xc'),auth[_0x21c4('0x4')](),auth[_0x21c4('0x5')](),controller['unhold']);router[_0x21c4('0x7')]('/calls',auth[_0x21c4('0x4')](),auth['canUpdate'](),controller[_0x21c4('0xd')]);router[_0x21c4('0x7')](_0x21c4('0xe'),auth[_0x21c4('0x4')](),auth[_0x21c4('0x5')](),controller[_0x21c4('0xf')]);module[_0x21c4('0x10')]=router;