Built motion from commit 9d0783e6.|2.6.13
[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 _0xf378=['../../components/auth/service','./cmHopper.controller','get','/describe','isAuthenticated','describe','/opencontacts','/timezones','/:id','show','/:id/previewrecall','post','create','/preview','/timezone','getTimezone','put','update','destroy','exports','express'];(function(_0x4e7b01,_0x5c31bf){var _0x521e73=function(_0x4ac1f2){while(--_0x4ac1f2){_0x4e7b01['push'](_0x4e7b01['shift']());}};_0x521e73(++_0x5c31bf);}(_0xf378,0xfb));var _0x8f37=function(_0x42cae2,_0x284ef8){_0x42cae2=_0x42cae2-0x0;var _0x5f256f=_0xf378[_0x42cae2];return _0x5f256f;};'use strict';var express=require(_0x8f37('0x0'));var router=express['Router']();var auth=require(_0x8f37('0x1'));var controller=require(_0x8f37('0x2'));router[_0x8f37('0x3')]('/',auth['isAuthenticated'](),controller['index']);router[_0x8f37('0x3')](_0x8f37('0x4'),auth[_0x8f37('0x5')](),controller[_0x8f37('0x6')]);router[_0x8f37('0x3')](_0x8f37('0x7'),auth['isAuthenticated'](),controller['getOpenContacts']);router[_0x8f37('0x3')](_0x8f37('0x8'),auth[_0x8f37('0x5')](),controller['getTimezones']);router['get'](_0x8f37('0x9'),auth[_0x8f37('0x5')](),controller[_0x8f37('0xa')]);router[_0x8f37('0x3')](_0x8f37('0xb'),auth[_0x8f37('0x5')](),controller['getPreviewRecall']);router[_0x8f37('0xc')]('/',auth[_0x8f37('0x5')](),controller[_0x8f37('0xd')]);router[_0x8f37('0xc')](_0x8f37('0xe'),auth[_0x8f37('0x5')](),controller['getPreview']);router['post'](_0x8f37('0xf'),auth[_0x8f37('0x5')](),controller[_0x8f37('0x10')]);router[_0x8f37('0x11')](_0x8f37('0x9'),auth[_0x8f37('0x5')](),controller[_0x8f37('0x12')]);router['delete']('/:id',auth[_0x8f37('0x5')](),controller[_0x8f37('0x13')]);module[_0x8f37('0x14')]=router;