ebf256b21be85227a64e29a8156ca02f968bbcb1
[motion2.git] / server / api / cmHopperBlack / 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 _0x5d58=['exports','Router','fs-extra','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','describe','/:id','show','put','destroy'];(function(_0x499c2a,_0x48bc9f){var _0x1a01e0=function(_0x3dbe65){while(--_0x3dbe65){_0x499c2a['push'](_0x499c2a['shift']());}};_0x1a01e0(++_0x48bc9f);}(_0x5d58,0x187));var _0x85d5=function(_0x2de380,_0x15294e){_0x2de380=_0x2de380-0x0;var _0x43cabb=_0x5d58[_0x2de380];return _0x43cabb;};'use strict';var multer=require('multer');var util=require('util');var path=require('path');var timeout=require('connect-timeout');var express=require('express');var router=express[_0x85d5('0x0')]();var fs_extra=require(_0x85d5('0x1'));var auth=require('../../components/auth/service');var interaction=require(_0x85d5('0x2'));var config=require(_0x85d5('0x3'));var controller=require('./cmHopperBlack.controller');router[_0x85d5('0x4')]('/',auth[_0x85d5('0x5')](),controller[_0x85d5('0x6')]);router[_0x85d5('0x4')]('/describe',auth[_0x85d5('0x5')](),controller[_0x85d5('0x7')]);router['get'](_0x85d5('0x8'),auth['isAuthenticated'](),controller[_0x85d5('0x9')]);router[_0x85d5('0xa')](_0x85d5('0x8'),auth['isAuthenticated'](),controller['update']);router['delete'](_0x85d5('0x8'),auth[_0x85d5('0x5')](),controller[_0x85d5('0xb')]);module[_0x85d5('0xc')]=router;