Built motion from commit 953226e6.|2.6.32
[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 _0x0b89=['isAuthenticated','index','/describe','describe','/opencontacts','getOpenContacts','/timezones','getTimezones','/:id','/:id/previewrecall','getPreviewRecall','post','create','getPreview','/timezone','update','destroy','exports','Router','../../components/auth/service','./cmHopper.controller','get'];(function(_0x28f153,_0x4852ed){var _0x56b861=function(_0x3cbf02){while(--_0x3cbf02){_0x28f153['push'](_0x28f153['shift']());}};_0x56b861(++_0x4852ed);}(_0x0b89,0x130));var _0x90b8=function(_0x59c59b,_0x2cbe3e){_0x59c59b=_0x59c59b-0x0;var _0x506c07=_0x0b89[_0x59c59b];return _0x506c07;};'use strict';var express=require('express');var router=express[_0x90b8('0x0')]();var auth=require(_0x90b8('0x1'));var controller=require(_0x90b8('0x2'));router[_0x90b8('0x3')]('/',auth[_0x90b8('0x4')](),controller[_0x90b8('0x5')]);router['get'](_0x90b8('0x6'),auth[_0x90b8('0x4')](),controller[_0x90b8('0x7')]);router['get'](_0x90b8('0x8'),auth[_0x90b8('0x4')](),controller[_0x90b8('0x9')]);router[_0x90b8('0x3')](_0x90b8('0xa'),auth['isAuthenticated'](),controller[_0x90b8('0xb')]);router[_0x90b8('0x3')](_0x90b8('0xc'),auth['isAuthenticated'](),controller['show']);router['get'](_0x90b8('0xd'),auth[_0x90b8('0x4')](),controller[_0x90b8('0xe')]);router[_0x90b8('0xf')]('/',auth[_0x90b8('0x4')](),controller[_0x90b8('0x10')]);router['post']('/preview',auth[_0x90b8('0x4')](),controller[_0x90b8('0x11')]);router['post'](_0x90b8('0x12'),auth[_0x90b8('0x4')](),controller['getTimezone']);router['put'](_0x90b8('0xc'),auth[_0x90b8('0x4')](),controller[_0x90b8('0x13')]);router['delete']('/:id',auth[_0x90b8('0x4')](),controller[_0x90b8('0x14')]);module[_0x90b8('0x15')]=router;