7aea26e5f08842a68c0e96d6383b7f1b93bdf571
[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 _0x18f4=['isAuthenticated','describe','get','getOpenContacts','/timezones','show','/:id/previewrecall','getPreviewRecall','create','post','/preview','getPreview','/timezone','getTimezone','put','/:id','update','express','Router','./cmHopper.controller','index','/describe'];(function(_0x33cf17,_0x242661){var _0x2feeb8=function(_0x242719){while(--_0x242719){_0x33cf17['push'](_0x33cf17['shift']());}};_0x2feeb8(++_0x242661);}(_0x18f4,0x69));var _0x418f=function(_0x2f3d9d,_0x4e7c15){_0x2f3d9d=_0x2f3d9d-0x0;var _0x5ec938=_0x18f4[_0x2f3d9d];return _0x5ec938;};'use strict';var express=require(_0x418f('0x0'));var router=express[_0x418f('0x1')]();var auth=require('../../components/auth/service');var controller=require(_0x418f('0x2'));router['get']('/',auth['isAuthenticated'](),controller[_0x418f('0x3')]);router['get'](_0x418f('0x4'),auth[_0x418f('0x5')](),controller[_0x418f('0x6')]);router[_0x418f('0x7')]('/opencontacts',auth[_0x418f('0x5')](),controller[_0x418f('0x8')]);router[_0x418f('0x7')](_0x418f('0x9'),auth[_0x418f('0x5')](),controller['getTimezones']);router['get']('/:id',auth[_0x418f('0x5')](),controller[_0x418f('0xa')]);router[_0x418f('0x7')](_0x418f('0xb'),auth[_0x418f('0x5')](),controller[_0x418f('0xc')]);router['post']('/',auth[_0x418f('0x5')](),controller[_0x418f('0xd')]);router[_0x418f('0xe')](_0x418f('0xf'),auth[_0x418f('0x5')](),controller[_0x418f('0x10')]);router[_0x418f('0xe')](_0x418f('0x11'),auth[_0x418f('0x5')](),controller[_0x418f('0x12')]);router[_0x418f('0x13')](_0x418f('0x14'),auth['isAuthenticated'](),controller[_0x418f('0x15')]);router['delete'](_0x418f('0x14'),auth[_0x418f('0x5')](),controller['destroy']);module['exports']=router;