Built motion from commit d1eab355.|2.6.28
[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 _0xf40b=['/preview','/timezone','getTimezone','put','update','destroy','Router','./cmHopper.controller','get','isAuthenticated','index','/describe','getOpenContacts','getTimezones','/:id','getPreviewRecall','post','create'];(function(_0x4c3396,_0x5b8d3e){var _0x3286bd=function(_0x3be53c){while(--_0x3be53c){_0x4c3396['push'](_0x4c3396['shift']());}};_0x3286bd(++_0x5b8d3e);}(_0xf40b,0x102));var _0xbf40=function(_0x2a0099,_0x4cf712){_0x2a0099=_0x2a0099-0x0;var _0x2d4237=_0xf40b[_0x2a0099];return _0x2d4237;};'use strict';var express=require('express');var router=express[_0xbf40('0x0')]();var auth=require('../../components/auth/service');var controller=require(_0xbf40('0x1'));router[_0xbf40('0x2')]('/',auth[_0xbf40('0x3')](),controller[_0xbf40('0x4')]);router[_0xbf40('0x2')](_0xbf40('0x5'),auth[_0xbf40('0x3')](),controller['describe']);router['get']('/opencontacts',auth[_0xbf40('0x3')](),controller[_0xbf40('0x6')]);router['get']('/timezones',auth[_0xbf40('0x3')](),controller[_0xbf40('0x7')]);router['get'](_0xbf40('0x8'),auth[_0xbf40('0x3')](),controller['show']);router['get']('/:id/previewrecall',auth[_0xbf40('0x3')](),controller[_0xbf40('0x9')]);router[_0xbf40('0xa')]('/',auth['isAuthenticated'](),controller[_0xbf40('0xb')]);router[_0xbf40('0xa')](_0xbf40('0xc'),auth[_0xbf40('0x3')](),controller['getPreview']);router[_0xbf40('0xa')](_0xbf40('0xd'),auth[_0xbf40('0x3')](),controller[_0xbf40('0xe')]);router[_0xbf40('0xf')](_0xbf40('0x8'),auth['isAuthenticated'](),controller[_0xbf40('0x10')]);router['delete'](_0xbf40('0x8'),auth[_0xbf40('0x3')](),controller[_0xbf40('0x11')]);module['exports']=router;