Built motion from commit 9d1906d1.|2.5.40
[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 _0x26f7=['fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./cmHopper.controller','get','isAuthenticated','index','/describe','describe','/opencontacts','show','post','create','/preview','put','/:id','delete','multer','util','path','express','Router'];(function(_0x27dba4,_0x419253){var _0x35ec9d=function(_0x2d13b2){while(--_0x2d13b2){_0x27dba4['push'](_0x27dba4['shift']());}};_0x35ec9d(++_0x419253);}(_0x26f7,0x1c7));var _0x726f=function(_0x563f2a,_0x18fee2){_0x563f2a=_0x563f2a-0x0;var _0x97af3f=_0x26f7[_0x563f2a];return _0x97af3f;};'use strict';var multer=require(_0x726f('0x0'));var util=require(_0x726f('0x1'));var path=require(_0x726f('0x2'));var timeout=require('connect-timeout');var express=require(_0x726f('0x3'));var router=express[_0x726f('0x4')]();var fs_extra=require(_0x726f('0x5'));var auth=require(_0x726f('0x6'));var interaction=require(_0x726f('0x7'));var config=require(_0x726f('0x8'));var controller=require(_0x726f('0x9'));router[_0x726f('0xa')]('/',auth[_0x726f('0xb')](),controller[_0x726f('0xc')]);router[_0x726f('0xa')](_0x726f('0xd'),auth['isAuthenticated'](),controller[_0x726f('0xe')]);router[_0x726f('0xa')](_0x726f('0xf'),auth[_0x726f('0xb')](),controller['getOpenContacts']);router[_0x726f('0xa')]('/:id',auth[_0x726f('0xb')](),controller[_0x726f('0x10')]);router[_0x726f('0x11')]('/',auth[_0x726f('0xb')](),controller[_0x726f('0x12')]);router['post'](_0x726f('0x13'),auth[_0x726f('0xb')](),controller['getPreview']);router[_0x726f('0x14')](_0x726f('0x15'),auth[_0x726f('0xb')](),controller['update']);router[_0x726f('0x16')](_0x726f('0x15'),auth[_0x726f('0xb')](),controller['destroy']);module['exports']=router;