f5ae2e4253a81f213676c8becc5c35831a8d370d
[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 _0xa7d2=['index','/describe','isAuthenticated','getOpenContacts','show','post','/preview','getPreview','/previewrecall','getPreviewRecall','/:id','delete','destroy','multer','util','path','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./cmHopper.controller','get'];(function(_0x2debb5,_0x250a12){var _0x1739c9=function(_0x54d408){while(--_0x54d408){_0x2debb5['push'](_0x2debb5['shift']());}};_0x1739c9(++_0x250a12);}(_0xa7d2,0xbd));var _0x2a7d=function(_0x31d2d4,_0x2f2d42){_0x31d2d4=_0x31d2d4-0x0;var _0x223771=_0xa7d2[_0x31d2d4];return _0x223771;};'use strict';var multer=require(_0x2a7d('0x0'));var util=require(_0x2a7d('0x1'));var path=require(_0x2a7d('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x2a7d('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0x2a7d('0x4'));var interaction=require(_0x2a7d('0x5'));var config=require(_0x2a7d('0x6'));var controller=require(_0x2a7d('0x7'));router[_0x2a7d('0x8')]('/',auth['isAuthenticated'](),controller[_0x2a7d('0x9')]);router[_0x2a7d('0x8')](_0x2a7d('0xa'),auth[_0x2a7d('0xb')](),controller['describe']);router[_0x2a7d('0x8')]('/opencontacts',auth['isAuthenticated'](),controller[_0x2a7d('0xc')]);router[_0x2a7d('0x8')]('/:id',auth[_0x2a7d('0xb')](),controller[_0x2a7d('0xd')]);router[_0x2a7d('0xe')]('/',auth[_0x2a7d('0xb')](),controller['create']);router[_0x2a7d('0xe')](_0x2a7d('0xf'),auth[_0x2a7d('0xb')](),controller[_0x2a7d('0x10')]);router['post'](_0x2a7d('0x11'),auth[_0x2a7d('0xb')](),controller[_0x2a7d('0x12')]);router['put'](_0x2a7d('0x13'),auth[_0x2a7d('0xb')](),controller['update']);router[_0x2a7d('0x14')](_0x2a7d('0x13'),auth[_0x2a7d('0xb')](),controller[_0x2a7d('0x15')]);module['exports']=router;