b8b4ec9dd1429e5ee86037a3abc147d3993b0c22
[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 _0x2634=['delete','exports','../../components/auth/service','isAuthenticated','index','/describe','get','/opencontacts','/timezones','getTimezones','/:id','show','getPreviewRecall','post','create','getPreview','/timezone','getTimezone','put','update'];(function(_0x6a0134,_0x347cda){var _0x4c9012=function(_0x1c48b6){while(--_0x1c48b6){_0x6a0134['push'](_0x6a0134['shift']());}};_0x4c9012(++_0x347cda);}(_0x2634,0x156));var _0x4263=function(_0x20a584,_0xe384a5){_0x20a584=_0x20a584-0x0;var _0x4b41a8=_0x2634[_0x20a584];return _0x4b41a8;};'use strict';var express=require('express');var router=express['Router']();var auth=require(_0x4263('0x0'));var controller=require('./cmHopper.controller');router['get']('/',auth[_0x4263('0x1')](),controller[_0x4263('0x2')]);router['get'](_0x4263('0x3'),auth['isAuthenticated'](),controller['describe']);router[_0x4263('0x4')](_0x4263('0x5'),auth[_0x4263('0x1')](),controller['getOpenContacts']);router[_0x4263('0x4')](_0x4263('0x6'),auth[_0x4263('0x1')](),controller[_0x4263('0x7')]);router[_0x4263('0x4')](_0x4263('0x8'),auth[_0x4263('0x1')](),controller[_0x4263('0x9')]);router[_0x4263('0x4')]('/:id/previewrecall',auth['isAuthenticated'](),controller[_0x4263('0xa')]);router[_0x4263('0xb')]('/',auth[_0x4263('0x1')](),controller[_0x4263('0xc')]);router[_0x4263('0xb')]('/preview',auth[_0x4263('0x1')](),controller[_0x4263('0xd')]);router[_0x4263('0xb')](_0x4263('0xe'),auth[_0x4263('0x1')](),controller[_0x4263('0xf')]);router[_0x4263('0x10')](_0x4263('0x8'),auth[_0x4263('0x1')](),controller[_0x4263('0x11')]);router[_0x4263('0x12')](_0x4263('0x8'),auth[_0x4263('0x1')](),controller['destroy']);module[_0x4263('0x13')]=router;