Built motion from commit 85328c08.|2.5.50
[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 _0xdc50=['exports','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','./cmHopper.controller','isAuthenticated','index','/describe','describe','/opencontacts','getOpenContacts','get','/timezones','getTimezones','/:id','create','post','getPreview','/timezone','getTimezone','getPreviewRecall','put','update','destroy'];(function(_0x5d19f8,_0x56a7bb){var _0x42e896=function(_0x15d7c6){while(--_0x15d7c6){_0x5d19f8['push'](_0x5d19f8['shift']());}};_0x42e896(++_0x56a7bb);}(_0xdc50,0xb5));var _0x0dc5=function(_0x3fdea2,_0x5499bf){_0x3fdea2=_0x3fdea2-0x0;var _0x596ae3=_0xdc50[_0x3fdea2];return _0x596ae3;};'use strict';var multer=require(_0x0dc5('0x0'));var util=require(_0x0dc5('0x1'));var path=require(_0x0dc5('0x2'));var timeout=require(_0x0dc5('0x3'));var express=require(_0x0dc5('0x4'));var router=express[_0x0dc5('0x5')]();var fs_extra=require(_0x0dc5('0x6'));var auth=require(_0x0dc5('0x7'));var interaction=require(_0x0dc5('0x8'));var config=require('../../config/environment');var controller=require(_0x0dc5('0x9'));router['get']('/',auth[_0x0dc5('0xa')](),controller[_0x0dc5('0xb')]);router['get'](_0x0dc5('0xc'),auth['isAuthenticated'](),controller[_0x0dc5('0xd')]);router['get'](_0x0dc5('0xe'),auth['isAuthenticated'](),controller[_0x0dc5('0xf')]);router[_0x0dc5('0x10')](_0x0dc5('0x11'),auth['isAuthenticated'](),controller[_0x0dc5('0x12')]);router[_0x0dc5('0x10')](_0x0dc5('0x13'),auth[_0x0dc5('0xa')](),controller['show']);router['post']('/',auth[_0x0dc5('0xa')](),controller[_0x0dc5('0x14')]);router[_0x0dc5('0x15')]('/preview',auth[_0x0dc5('0xa')](),controller[_0x0dc5('0x16')]);router['post'](_0x0dc5('0x17'),auth[_0x0dc5('0xa')](),controller[_0x0dc5('0x18')]);router[_0x0dc5('0x15')]('/previewrecall',auth[_0x0dc5('0xa')](),controller[_0x0dc5('0x19')]);router[_0x0dc5('0x1a')]('/:id',auth[_0x0dc5('0xa')](),controller[_0x0dc5('0x1b')]);router['delete']('/:id',auth[_0x0dc5('0xa')](),controller[_0x0dc5('0x1c')]);module[_0x0dc5('0x1d')]=router;