Built motion from commit (unavailable).|2.5.17
[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 _0x6343=['connect-timeout','../../config/environment','./cmHopper.controller','isAuthenticated','index','/describe','/opencontacts','getOpenContacts','get','/:id','create','/preview','getPreview','put','update','delete','destroy','exports','path'];(function(_0x422078,_0x56a17a){var _0x2eb333=function(_0xee28ba){while(--_0xee28ba){_0x422078['push'](_0x422078['shift']());}};_0x2eb333(++_0x56a17a);}(_0x6343,0x168));var _0x3634=function(_0x16f361,_0x495557){_0x16f361=_0x16f361-0x0;var _0x601d53=_0x6343[_0x16f361];return _0x601d53;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x3634('0x0'));var timeout=require(_0x3634('0x1'));var express=require('express');var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x3634('0x2'));var controller=require(_0x3634('0x3'));router['get']('/',auth[_0x3634('0x4')](),controller[_0x3634('0x5')]);router['get'](_0x3634('0x6'),auth[_0x3634('0x4')](),controller['describe']);router['get'](_0x3634('0x7'),auth[_0x3634('0x4')](),controller[_0x3634('0x8')]);router[_0x3634('0x9')](_0x3634('0xa'),auth[_0x3634('0x4')](),controller['show']);router['post']('/',auth[_0x3634('0x4')](),controller[_0x3634('0xb')]);router['post'](_0x3634('0xc'),auth[_0x3634('0x4')](),controller[_0x3634('0xd')]);router[_0x3634('0xe')](_0x3634('0xa'),auth[_0x3634('0x4')](),controller[_0x3634('0xf')]);router[_0x3634('0x10')](_0x3634('0xa'),auth[_0x3634('0x4')](),controller[_0x3634('0x11')]);module[_0x3634('0x12')]=router;