Built motion from commit 97153652.|2.6.26
[motion2.git] / server / api / cmHopper / 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 _0xb769=['describe','/opencontacts','getOpenContacts','/timezones','getTimezones','/:id','/:id/previewrecall','post','create','/preview','getPreview','/timezone','getTimezone','put','update','delete','destroy','Router','./cmHopper.controller','get','index','/describe','isAuthenticated'];(function(_0x25d525,_0x22a10e){var _0x276084=function(_0x2f559b){while(--_0x2f559b){_0x25d525['push'](_0x25d525['shift']());}};_0x276084(++_0x22a10e);}(_0xb769,0x6d));var _0x9b76=function(_0xa0732d,_0x2ad0f9){_0xa0732d=_0xa0732d-0x0;var _0x252245=_0xb769[_0xa0732d];return _0x252245;};'use strict';var express=require('express');var router=express[_0x9b76('0x0')]();var auth=require('../../components/auth/service');var controller=require(_0x9b76('0x1'));router[_0x9b76('0x2')]('/',auth['isAuthenticated'](),controller[_0x9b76('0x3')]);router[_0x9b76('0x2')](_0x9b76('0x4'),auth[_0x9b76('0x5')](),controller[_0x9b76('0x6')]);router[_0x9b76('0x2')](_0x9b76('0x7'),auth[_0x9b76('0x5')](),controller[_0x9b76('0x8')]);router[_0x9b76('0x2')](_0x9b76('0x9'),auth[_0x9b76('0x5')](),controller[_0x9b76('0xa')]);router[_0x9b76('0x2')](_0x9b76('0xb'),auth[_0x9b76('0x5')](),controller['show']);router[_0x9b76('0x2')](_0x9b76('0xc'),auth[_0x9b76('0x5')](),controller['getPreviewRecall']);router[_0x9b76('0xd')]('/',auth[_0x9b76('0x5')](),controller[_0x9b76('0xe')]);router[_0x9b76('0xd')](_0x9b76('0xf'),auth[_0x9b76('0x5')](),controller[_0x9b76('0x10')]);router[_0x9b76('0xd')](_0x9b76('0x11'),auth[_0x9b76('0x5')](),controller[_0x9b76('0x12')]);router[_0x9b76('0x13')]('/:id',auth[_0x9b76('0x5')](),controller[_0x9b76('0x14')]);router[_0x9b76('0x15')]('/:id',auth[_0x9b76('0x5')](),controller[_0x9b76('0x16')]);module['exports']=router;