Built motion from commit (unavailable).|2.5.3
[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 _0x04de=['./webbar.controller','post','/originate','isAuthenticated','canUpdate','originate','/hangup','/answer','answer','/hold','/unhold','unhold','/calls','/transfer','transfer','exports','express','Router','../../components/auth/service'];(function(_0x40a045,_0x516f0e){var _0x1a687c=function(_0x48c9fe){while(--_0x48c9fe){_0x40a045['push'](_0x40a045['shift']());}};_0x1a687c(++_0x516f0e);}(_0x04de,0x107));var _0xe04d=function(_0x34b212,_0x10400e){_0x34b212=_0x34b212-0x0;var _0xd2008a=_0x04de[_0x34b212];return _0xd2008a;};'use strict';var express=require(_0xe04d('0x0'));var router=express[_0xe04d('0x1')]();var auth=require(_0xe04d('0x2'));var controller=require(_0xe04d('0x3'));router[_0xe04d('0x4')](_0xe04d('0x5'),auth[_0xe04d('0x6')](),auth[_0xe04d('0x7')](),controller[_0xe04d('0x8')]);router[_0xe04d('0x4')](_0xe04d('0x9'),auth['isAuthenticated'](),auth['canUpdate'](),controller['hangup']);router['post'](_0xe04d('0xa'),auth[_0xe04d('0x6')](),auth[_0xe04d('0x7')](),controller[_0xe04d('0xb')]);router[_0xe04d('0x4')](_0xe04d('0xc'),auth[_0xe04d('0x6')](),auth[_0xe04d('0x7')](),controller['hold']);router[_0xe04d('0x4')](_0xe04d('0xd'),auth[_0xe04d('0x6')](),auth[_0xe04d('0x7')](),controller[_0xe04d('0xe')]);router[_0xe04d('0x4')](_0xe04d('0xf'),auth[_0xe04d('0x6')](),auth[_0xe04d('0x7')](),controller['calls']);router[_0xe04d('0x4')](_0xe04d('0x10'),auth[_0xe04d('0x6')](),auth[_0xe04d('0x7')](),controller[_0xe04d('0x11')]);module[_0xe04d('0x12')]=router;