Built motion from commit (unavailable).|2.5.1
[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 _0xd4b6=['/calls','calls','transfer','exports','express','Router','./webbar.controller','post','isAuthenticated','/hangup','canUpdate','/answer','/hold','/unhold','unhold'];(function(_0x4ddf27,_0x92cefa){var _0x46754f=function(_0x2913cf){while(--_0x2913cf){_0x4ddf27['push'](_0x4ddf27['shift']());}};_0x46754f(++_0x92cefa);}(_0xd4b6,0x13f));var _0x6d4b=function(_0x1f9f37,_0x18776e){_0x1f9f37=_0x1f9f37-0x0;var _0x21c080=_0xd4b6[_0x1f9f37];return _0x21c080;};'use strict';var express=require(_0x6d4b('0x0'));var router=express[_0x6d4b('0x1')]();var auth=require('../../components/auth/service');var controller=require(_0x6d4b('0x2'));router[_0x6d4b('0x3')]('/originate',auth[_0x6d4b('0x4')](),auth['canUpdate'](),controller['originate']);router['post'](_0x6d4b('0x5'),auth[_0x6d4b('0x4')](),auth[_0x6d4b('0x6')](),controller['hangup']);router[_0x6d4b('0x3')](_0x6d4b('0x7'),auth[_0x6d4b('0x4')](),auth[_0x6d4b('0x6')](),controller['answer']);router[_0x6d4b('0x3')](_0x6d4b('0x8'),auth[_0x6d4b('0x4')](),auth[_0x6d4b('0x6')](),controller['hold']);router[_0x6d4b('0x3')](_0x6d4b('0x9'),auth[_0x6d4b('0x4')](),auth[_0x6d4b('0x6')](),controller[_0x6d4b('0xa')]);router[_0x6d4b('0x3')](_0x6d4b('0xb'),auth['isAuthenticated'](),auth[_0x6d4b('0x6')](),controller[_0x6d4b('0xc')]);router[_0x6d4b('0x3')]('/transfer',auth[_0x6d4b('0x4')](),auth[_0x6d4b('0x6')](),controller[_0x6d4b('0xd')]);module[_0x6d4b('0xe')]=router;