439c8a3aa4783b434b365a32d2394ca5438f6d03
[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 _0xdd20=['describe','/opencontacts','getOpenContacts','show','post','create','getPreview','put','/:id','update','delete','destroy','exports','util','path','connect-timeout','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated'];(function(_0x226abe,_0x40eb79){var _0x136a23=function(_0x438226){while(--_0x438226){_0x226abe['push'](_0x226abe['shift']());}};_0x136a23(++_0x40eb79);}(_0xdd20,0xae));var _0x0dd2=function(_0x564fe9,_0x57b509){_0x564fe9=_0x564fe9-0x0;var _0x5ad281=_0xdd20[_0x564fe9];return _0x5ad281;};'use strict';var multer=require('multer');var util=require(_0x0dd2('0x0'));var path=require(_0x0dd2('0x1'));var timeout=require(_0x0dd2('0x2'));var express=require('express');var router=express[_0x0dd2('0x3')]();var fs_extra=require(_0x0dd2('0x4'));var auth=require(_0x0dd2('0x5'));var interaction=require(_0x0dd2('0x6'));var config=require(_0x0dd2('0x7'));var controller=require('./cmHopper.controller');router[_0x0dd2('0x8')]('/',auth[_0x0dd2('0x9')](),controller['index']);router[_0x0dd2('0x8')]('/describe',auth[_0x0dd2('0x9')](),controller[_0x0dd2('0xa')]);router[_0x0dd2('0x8')](_0x0dd2('0xb'),auth[_0x0dd2('0x9')](),controller[_0x0dd2('0xc')]);router[_0x0dd2('0x8')]('/:id',auth['isAuthenticated'](),controller[_0x0dd2('0xd')]);router[_0x0dd2('0xe')]('/',auth[_0x0dd2('0x9')](),controller[_0x0dd2('0xf')]);router['post']('/preview',auth[_0x0dd2('0x9')](),controller[_0x0dd2('0x10')]);router[_0x0dd2('0x11')](_0x0dd2('0x12'),auth[_0x0dd2('0x9')](),controller[_0x0dd2('0x13')]);router[_0x0dd2('0x14')]('/:id',auth['isAuthenticated'](),controller[_0x0dd2('0x15')]);module[_0x0dd2('0x16')]=router;