Built motion from commit e02f907f.|2.6.14
[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 _0x20a6=['../../components/auth/service','get','isAuthenticated','/describe','getOpenContacts','/timezones','getTimezones','/:id/previewrecall','getPreviewRecall','post','create','/timezone','getTimezone','put','/:id','update','destroy','exports','express','Router'];(function(_0x217db9,_0xda9220){var _0x5c813c=function(_0x553e8b){while(--_0x553e8b){_0x217db9['push'](_0x217db9['shift']());}};_0x5c813c(++_0xda9220);}(_0x20a6,0x12a));var _0x620a=function(_0x400ef0,_0x2bf48e){_0x400ef0=_0x400ef0-0x0;var _0x417556=_0x20a6[_0x400ef0];return _0x417556;};'use strict';var express=require(_0x620a('0x0'));var router=express[_0x620a('0x1')]();var auth=require(_0x620a('0x2'));var controller=require('./cmHopper.controller');router[_0x620a('0x3')]('/',auth[_0x620a('0x4')](),controller['index']);router[_0x620a('0x3')](_0x620a('0x5'),auth['isAuthenticated'](),controller['describe']);router[_0x620a('0x3')]('/opencontacts',auth[_0x620a('0x4')](),controller[_0x620a('0x6')]);router[_0x620a('0x3')](_0x620a('0x7'),auth['isAuthenticated'](),controller[_0x620a('0x8')]);router['get']('/:id',auth[_0x620a('0x4')](),controller['show']);router['get'](_0x620a('0x9'),auth[_0x620a('0x4')](),controller[_0x620a('0xa')]);router[_0x620a('0xb')]('/',auth[_0x620a('0x4')](),controller[_0x620a('0xc')]);router['post']('/preview',auth[_0x620a('0x4')](),controller['getPreview']);router[_0x620a('0xb')](_0x620a('0xd'),auth[_0x620a('0x4')](),controller[_0x620a('0xe')]);router[_0x620a('0xf')](_0x620a('0x10'),auth[_0x620a('0x4')](),controller[_0x620a('0x11')]);router['delete']('/:id',auth['isAuthenticated'](),controller[_0x620a('0x12')]);module[_0x620a('0x13')]=router;