Built motion from commit 639a1a7f.|2.6.19
[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 _0x89df=['delete','Router','get','isAuthenticated','index','/describe','describe','getOpenContacts','/timezones','getTimezones','/:id','show','/:id/previewrecall','create','/preview','getPreview','post','/timezone','getTimezone','put'];(function(_0x54d4a8,_0x585a59){var _0x3b321b=function(_0x245c6a){while(--_0x245c6a){_0x54d4a8['push'](_0x54d4a8['shift']());}};_0x3b321b(++_0x585a59);}(_0x89df,0x65));var _0xf89d=function(_0x36313b,_0x22a61b){_0x36313b=_0x36313b-0x0;var _0x554ff3=_0x89df[_0x36313b];return _0x554ff3;};'use strict';var express=require('express');var router=express[_0xf89d('0x0')]();var auth=require('../../components/auth/service');var controller=require('./cmHopper.controller');router[_0xf89d('0x1')]('/',auth[_0xf89d('0x2')](),controller[_0xf89d('0x3')]);router[_0xf89d('0x1')](_0xf89d('0x4'),auth[_0xf89d('0x2')](),controller[_0xf89d('0x5')]);router[_0xf89d('0x1')]('/opencontacts',auth[_0xf89d('0x2')](),controller[_0xf89d('0x6')]);router['get'](_0xf89d('0x7'),auth[_0xf89d('0x2')](),controller[_0xf89d('0x8')]);router[_0xf89d('0x1')](_0xf89d('0x9'),auth[_0xf89d('0x2')](),controller[_0xf89d('0xa')]);router['get'](_0xf89d('0xb'),auth[_0xf89d('0x2')](),controller['getPreviewRecall']);router['post']('/',auth[_0xf89d('0x2')](),controller[_0xf89d('0xc')]);router['post'](_0xf89d('0xd'),auth['isAuthenticated'](),controller[_0xf89d('0xe')]);router[_0xf89d('0xf')](_0xf89d('0x10'),auth['isAuthenticated'](),controller[_0xf89d('0x11')]);router[_0xf89d('0x12')](_0xf89d('0x9'),auth[_0xf89d('0x2')](),controller['update']);router[_0xf89d('0x13')]('/:id',auth[_0xf89d('0x2')](),controller['destroy']);module['exports']=router;