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