Built motion from commit da617fac.|2.6.6
[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 _0xbfbe=['/opencontacts','getOpenContacts','/timezones','getTimezones','show','/:id/previewrecall','getPreviewRecall','post','create','/preview','getPreview','getTimezone','/:id','update','delete','destroy','express','Router','get','index','/describe','isAuthenticated','describe'];(function(_0x3b962a,_0x27ccf3){var _0xf4961=function(_0x488068){while(--_0x488068){_0x3b962a['push'](_0x3b962a['shift']());}};_0xf4961(++_0x27ccf3);}(_0xbfbe,0x1ae));var _0xebfb=function(_0x44976e,_0x311385){_0x44976e=_0x44976e-0x0;var _0x4852b2=_0xbfbe[_0x44976e];return _0x4852b2;};'use strict';var express=require(_0xebfb('0x0'));var router=express[_0xebfb('0x1')]();var auth=require('../../components/auth/service');var controller=require('./cmHopper.controller');router[_0xebfb('0x2')]('/',auth['isAuthenticated'](),controller[_0xebfb('0x3')]);router[_0xebfb('0x2')](_0xebfb('0x4'),auth[_0xebfb('0x5')](),controller[_0xebfb('0x6')]);router[_0xebfb('0x2')](_0xebfb('0x7'),auth[_0xebfb('0x5')](),controller[_0xebfb('0x8')]);router[_0xebfb('0x2')](_0xebfb('0x9'),auth['isAuthenticated'](),controller[_0xebfb('0xa')]);router['get']('/:id',auth[_0xebfb('0x5')](),controller[_0xebfb('0xb')]);router[_0xebfb('0x2')](_0xebfb('0xc'),auth['isAuthenticated'](),controller[_0xebfb('0xd')]);router[_0xebfb('0xe')]('/',auth[_0xebfb('0x5')](),controller[_0xebfb('0xf')]);router[_0xebfb('0xe')](_0xebfb('0x10'),auth['isAuthenticated'](),controller[_0xebfb('0x11')]);router[_0xebfb('0xe')]('/timezone',auth[_0xebfb('0x5')](),controller[_0xebfb('0x12')]);router['put'](_0xebfb('0x13'),auth[_0xebfb('0x5')](),controller[_0xebfb('0x14')]);router[_0xebfb('0x15')]('/:id',auth[_0xebfb('0x5')](),controller[_0xebfb('0x16')]);module['exports']=router;