112b7831bbbf54290cb886f021e13e515e31d821
[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 _0xd08a=['getOpenContacts','get','/:id','show','post','create','getPreview','put','update','delete','destroy','multer','util','path','Router','fs-extra','../../components/interaction/service','../../config/environment','./cmHopper.controller','index','/describe','isAuthenticated','describe'];(function(_0x44c0c2,_0x29d866){var _0x5b2eb8=function(_0x370296){while(--_0x370296){_0x44c0c2['push'](_0x44c0c2['shift']());}};_0x5b2eb8(++_0x29d866);}(_0xd08a,0x1ee));var _0xad08=function(_0x2cf013,_0x2b7796){_0x2cf013=_0x2cf013-0x0;var _0x19d607=_0xd08a[_0x2cf013];return _0x19d607;};'use strict';var multer=require(_0xad08('0x0'));var util=require(_0xad08('0x1'));var path=require(_0xad08('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0xad08('0x3')]();var fs_extra=require(_0xad08('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0xad08('0x5'));var config=require(_0xad08('0x6'));var controller=require(_0xad08('0x7'));router['get']('/',auth['isAuthenticated'](),controller[_0xad08('0x8')]);router['get'](_0xad08('0x9'),auth[_0xad08('0xa')](),controller[_0xad08('0xb')]);router['get']('/opencontacts',auth[_0xad08('0xa')](),controller[_0xad08('0xc')]);router[_0xad08('0xd')](_0xad08('0xe'),auth[_0xad08('0xa')](),controller[_0xad08('0xf')]);router[_0xad08('0x10')]('/',auth[_0xad08('0xa')](),controller[_0xad08('0x11')]);router[_0xad08('0x10')]('/preview',auth[_0xad08('0xa')](),controller[_0xad08('0x12')]);router[_0xad08('0x13')](_0xad08('0xe'),auth[_0xad08('0xa')](),controller[_0xad08('0x14')]);router[_0xad08('0x15')]('/:id',auth[_0xad08('0xa')](),controller[_0xad08('0x16')]);module['exports']=router;