509b87a23f625b2f39d09fed4f4a39d2950895bf
[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 _0x5d14=['path','connect-timeout','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./cmHopper.controller','get','isAuthenticated','/describe','describe','/opencontacts','getOpenContacts','/:id','post','create','/preview','getPreview','/previewrecall','getPreviewRecall','put','update','delete','destroy','exports','multer','util'];(function(_0xf136bc,_0x4cb677){var _0x447aa6=function(_0x5c6f9b){while(--_0x5c6f9b){_0xf136bc['push'](_0xf136bc['shift']());}};_0x447aa6(++_0x4cb677);}(_0x5d14,0x116));var _0x45d1=function(_0x5a3cf0,_0x160a68){_0x5a3cf0=_0x5a3cf0-0x0;var _0x5a64ee=_0x5d14[_0x5a3cf0];return _0x5a64ee;};'use strict';var multer=require(_0x45d1('0x0'));var util=require(_0x45d1('0x1'));var path=require(_0x45d1('0x2'));var timeout=require(_0x45d1('0x3'));var express=require('express');var router=express[_0x45d1('0x4')]();var fs_extra=require(_0x45d1('0x5'));var auth=require(_0x45d1('0x6'));var interaction=require(_0x45d1('0x7'));var config=require(_0x45d1('0x8'));var controller=require(_0x45d1('0x9'));router[_0x45d1('0xa')]('/',auth[_0x45d1('0xb')](),controller['index']);router[_0x45d1('0xa')](_0x45d1('0xc'),auth[_0x45d1('0xb')](),controller[_0x45d1('0xd')]);router[_0x45d1('0xa')](_0x45d1('0xe'),auth[_0x45d1('0xb')](),controller[_0x45d1('0xf')]);router[_0x45d1('0xa')](_0x45d1('0x10'),auth[_0x45d1('0xb')](),controller['show']);router[_0x45d1('0x11')]('/',auth[_0x45d1('0xb')](),controller[_0x45d1('0x12')]);router[_0x45d1('0x11')](_0x45d1('0x13'),auth['isAuthenticated'](),controller[_0x45d1('0x14')]);router[_0x45d1('0x11')](_0x45d1('0x15'),auth[_0x45d1('0xb')](),controller[_0x45d1('0x16')]);router[_0x45d1('0x17')]('/:id',auth[_0x45d1('0xb')](),controller[_0x45d1('0x18')]);router[_0x45d1('0x19')](_0x45d1('0x10'),auth[_0x45d1('0xb')](),controller[_0x45d1('0x1a')]);module[_0x45d1('0x1b')]=router;