fc4291d47065e28c87ebf94221bb6b6e3095079f
[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 _0x9a57=['index','get','describe','/opencontacts','getOpenContacts','/:id','show','post','/preview','getPreview','put','delete','destroy','multer','util','path','connect-timeout','./cmHopper.controller','isAuthenticated'];(function(_0xa5ed7b,_0x4b4a5c){var _0x3c309e=function(_0x348bbe){while(--_0x348bbe){_0xa5ed7b['push'](_0xa5ed7b['shift']());}};_0x3c309e(++_0x4b4a5c);}(_0x9a57,0x176));var _0x79a5=function(_0x16b9ed,_0x56517a){_0x16b9ed=_0x16b9ed-0x0;var _0x66b1f8=_0x9a57[_0x16b9ed];return _0x66b1f8;};'use strict';var multer=require(_0x79a5('0x0'));var util=require(_0x79a5('0x1'));var path=require(_0x79a5('0x2'));var timeout=require(_0x79a5('0x3'));var express=require('express');var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x79a5('0x4'));router['get']('/',auth[_0x79a5('0x5')](),controller[_0x79a5('0x6')]);router[_0x79a5('0x7')]('/describe',auth[_0x79a5('0x5')](),controller[_0x79a5('0x8')]);router[_0x79a5('0x7')](_0x79a5('0x9'),auth[_0x79a5('0x5')](),controller[_0x79a5('0xa')]);router[_0x79a5('0x7')](_0x79a5('0xb'),auth[_0x79a5('0x5')](),controller[_0x79a5('0xc')]);router[_0x79a5('0xd')]('/',auth[_0x79a5('0x5')](),controller['create']);router['post'](_0x79a5('0xe'),auth[_0x79a5('0x5')](),controller[_0x79a5('0xf')]);router[_0x79a5('0x10')](_0x79a5('0xb'),auth[_0x79a5('0x5')](),controller['update']);router[_0x79a5('0x11')](_0x79a5('0xb'),auth[_0x79a5('0x5')](),controller[_0x79a5('0x12')]);module['exports']=router;