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