Built motion from commit f74363e9.|2.6.34
[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 _0xc3c5=['/opencontacts','/:id','show','getPreviewRecall','post','create','/preview','getTimezone','put','delete','exports','express','Router','./cmHopper.controller','get','isAuthenticated','index','describe'];(function(_0x138f59,_0x1b53fb){var _0x3d114d=function(_0x1f9461){while(--_0x1f9461){_0x138f59['push'](_0x138f59['shift']());}};_0x3d114d(++_0x1b53fb);}(_0xc3c5,0x1a9));var _0x5c3c=function(_0x48a48d,_0x3faf3b){_0x48a48d=_0x48a48d-0x0;var _0xa0f5ce=_0xc3c5[_0x48a48d];return _0xa0f5ce;};'use strict';var express=require(_0x5c3c('0x0'));var router=express[_0x5c3c('0x1')]();var auth=require('../../components/auth/service');var controller=require(_0x5c3c('0x2'));router[_0x5c3c('0x3')]('/',auth[_0x5c3c('0x4')](),controller[_0x5c3c('0x5')]);router['get']('/describe',auth[_0x5c3c('0x4')](),controller[_0x5c3c('0x6')]);router[_0x5c3c('0x3')](_0x5c3c('0x7'),auth[_0x5c3c('0x4')](),controller['getOpenContacts']);router[_0x5c3c('0x3')]('/timezones',auth['isAuthenticated'](),controller['getTimezones']);router['get'](_0x5c3c('0x8'),auth['isAuthenticated'](),controller[_0x5c3c('0x9')]);router[_0x5c3c('0x3')]('/:id/previewrecall',auth[_0x5c3c('0x4')](),controller[_0x5c3c('0xa')]);router[_0x5c3c('0xb')]('/',auth[_0x5c3c('0x4')](),controller[_0x5c3c('0xc')]);router['post'](_0x5c3c('0xd'),auth[_0x5c3c('0x4')](),controller['getPreview']);router[_0x5c3c('0xb')]('/timezone',auth[_0x5c3c('0x4')](),controller[_0x5c3c('0xe')]);router[_0x5c3c('0xf')]('/:id',auth[_0x5c3c('0x4')](),controller['update']);router[_0x5c3c('0x10')](_0x5c3c('0x8'),auth[_0x5c3c('0x4')](),controller['destroy']);module[_0x5c3c('0x11')]=router;