0ed3b7f758564264fe9b3187569368063d9570d7
[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 _0x62f9=['get','isAuthenticated','index','describe','/opencontacts','getOpenContacts','/:id','create','/preview','getPreview','put','update','destroy','exports','connect-timeout','express','../../components/auth/service','../../config/environment','./cmHopper.controller'];(function(_0x422905,_0x3bce3a){var _0x33dc6c=function(_0x4852c9){while(--_0x4852c9){_0x422905['push'](_0x422905['shift']());}};_0x33dc6c(++_0x3bce3a);}(_0x62f9,0x80));var _0x962f=function(_0x3a60b8,_0x47caab){_0x3a60b8=_0x3a60b8-0x0;var _0x4eb583=_0x62f9[_0x3a60b8];return _0x4eb583;};'use strict';var multer=require('multer');var util=require('util');var path=require('path');var timeout=require(_0x962f('0x0'));var express=require(_0x962f('0x1'));var router=express['Router']();var auth=require(_0x962f('0x2'));var interaction=require('../../components/interaction/service');var config=require(_0x962f('0x3'));var controller=require(_0x962f('0x4'));router[_0x962f('0x5')]('/',auth[_0x962f('0x6')](),controller[_0x962f('0x7')]);router[_0x962f('0x5')]('/describe',auth[_0x962f('0x6')](),controller[_0x962f('0x8')]);router[_0x962f('0x5')](_0x962f('0x9'),auth['isAuthenticated'](),controller[_0x962f('0xa')]);router[_0x962f('0x5')](_0x962f('0xb'),auth[_0x962f('0x6')](),controller['show']);router['post']('/',auth[_0x962f('0x6')](),controller[_0x962f('0xc')]);router['post'](_0x962f('0xd'),auth[_0x962f('0x6')](),controller[_0x962f('0xe')]);router[_0x962f('0xf')](_0x962f('0xb'),auth[_0x962f('0x6')](),controller[_0x962f('0x10')]);router['delete'](_0x962f('0xb'),auth[_0x962f('0x6')](),controller[_0x962f('0x11')]);module[_0x962f('0x12')]=router;