Built motion from commit 08fb8613.|2.6.31
[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 _0x7787=['Router','../../components/auth/service','./cmHopper.controller','get','isAuthenticated','/describe','/opencontacts','getOpenContacts','/timezones','getTimezones','/:id','show','/:id/previewrecall','getPreviewRecall','post','create','getPreview','/timezone','getTimezone','put','update','express'];(function(_0x4a6cf8,_0x5534ef){var _0x22205e=function(_0x3f4d0d){while(--_0x3f4d0d){_0x4a6cf8['push'](_0x4a6cf8['shift']());}};_0x22205e(++_0x5534ef);}(_0x7787,0x107));var _0x7778=function(_0x34d9c9,_0x3f9cbc){_0x34d9c9=_0x34d9c9-0x0;var _0x1b69c2=_0x7787[_0x34d9c9];return _0x1b69c2;};'use strict';var express=require(_0x7778('0x0'));var router=express[_0x7778('0x1')]();var auth=require(_0x7778('0x2'));var controller=require(_0x7778('0x3'));router[_0x7778('0x4')]('/',auth[_0x7778('0x5')](),controller['index']);router['get'](_0x7778('0x6'),auth[_0x7778('0x5')](),controller['describe']);router[_0x7778('0x4')](_0x7778('0x7'),auth[_0x7778('0x5')](),controller[_0x7778('0x8')]);router[_0x7778('0x4')](_0x7778('0x9'),auth[_0x7778('0x5')](),controller[_0x7778('0xa')]);router['get'](_0x7778('0xb'),auth[_0x7778('0x5')](),controller[_0x7778('0xc')]);router[_0x7778('0x4')](_0x7778('0xd'),auth[_0x7778('0x5')](),controller[_0x7778('0xe')]);router[_0x7778('0xf')]('/',auth[_0x7778('0x5')](),controller[_0x7778('0x10')]);router['post']('/preview',auth[_0x7778('0x5')](),controller[_0x7778('0x11')]);router[_0x7778('0xf')](_0x7778('0x12'),auth[_0x7778('0x5')](),controller[_0x7778('0x13')]);router[_0x7778('0x14')](_0x7778('0xb'),auth['isAuthenticated'](),controller[_0x7778('0x15')]);router['delete'](_0x7778('0xb'),auth['isAuthenticated'](),controller['destroy']);module['exports']=router;