617d508976faac30c3631f6996b144acb82b0e23
[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 _0x48ac=['get','isAuthenticated','describe','/opencontacts','getOpenContacts','/:id','show','post','create','/preview','put','delete','destroy','exports','util','connect-timeout','express','Router','../../components/interaction/service','../../config/environment','./cmHopper.controller'];(function(_0x527824,_0xc824a9){var _0xc8b8ed=function(_0x1b0e19){while(--_0x1b0e19){_0x527824['push'](_0x527824['shift']());}};_0xc8b8ed(++_0xc824a9);}(_0x48ac,0xe0));var _0xc48a=function(_0x1d0ab0,_0x40ccfc){_0x1d0ab0=_0x1d0ab0-0x0;var _0x494100=_0x48ac[_0x1d0ab0];return _0x494100;};'use strict';var multer=require('multer');var util=require(_0xc48a('0x0'));var path=require('path');var timeout=require(_0xc48a('0x1'));var express=require(_0xc48a('0x2'));var router=express[_0xc48a('0x3')]();var auth=require('../../components/auth/service');var interaction=require(_0xc48a('0x4'));var config=require(_0xc48a('0x5'));var controller=require(_0xc48a('0x6'));router[_0xc48a('0x7')]('/',auth[_0xc48a('0x8')](),controller['index']);router['get']('/describe',auth['isAuthenticated'](),controller[_0xc48a('0x9')]);router[_0xc48a('0x7')](_0xc48a('0xa'),auth['isAuthenticated'](),controller[_0xc48a('0xb')]);router[_0xc48a('0x7')](_0xc48a('0xc'),auth[_0xc48a('0x8')](),controller[_0xc48a('0xd')]);router[_0xc48a('0xe')]('/',auth[_0xc48a('0x8')](),controller[_0xc48a('0xf')]);router[_0xc48a('0xe')](_0xc48a('0x10'),auth[_0xc48a('0x8')](),controller['getPreview']);router[_0xc48a('0x11')](_0xc48a('0xc'),auth[_0xc48a('0x8')](),controller['update']);router[_0xc48a('0x12')](_0xc48a('0xc'),auth['isAuthenticated'](),controller[_0xc48a('0x13')]);module[_0xc48a('0x14')]=router;