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