15b8178d3dc85324034f4d6c7a307badc5b3cd59
[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 _0x905c=['fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/describe','/opencontacts','getOpenContacts','/timezones','/:id','show','post','create','/preview','getPreviewRecall','put','update','delete','destroy','exports','multer','util','path','connect-timeout'];(function(_0x59eb82,_0x47102a){var _0x1362e2=function(_0xf74418){while(--_0xf74418){_0x59eb82['push'](_0x59eb82['shift']());}};_0x1362e2(++_0x47102a);}(_0x905c,0x14e));var _0xc905=function(_0x190735,_0x57a739){_0x190735=_0x190735-0x0;var _0x4c1b93=_0x905c[_0x190735];return _0x4c1b93;};'use strict';var multer=require(_0xc905('0x0'));var util=require(_0xc905('0x1'));var path=require(_0xc905('0x2'));var timeout=require(_0xc905('0x3'));var express=require('express');var router=express['Router']();var fs_extra=require(_0xc905('0x4'));var auth=require(_0xc905('0x5'));var interaction=require(_0xc905('0x6'));var config=require(_0xc905('0x7'));var controller=require('./cmHopper.controller');router[_0xc905('0x8')]('/',auth[_0xc905('0x9')](),controller[_0xc905('0xa')]);router[_0xc905('0x8')](_0xc905('0xb'),auth[_0xc905('0x9')](),controller['describe']);router[_0xc905('0x8')](_0xc905('0xc'),auth[_0xc905('0x9')](),controller[_0xc905('0xd')]);router[_0xc905('0x8')](_0xc905('0xe'),auth[_0xc905('0x9')](),controller['getTimezones']);router[_0xc905('0x8')](_0xc905('0xf'),auth[_0xc905('0x9')](),controller[_0xc905('0x10')]);router[_0xc905('0x11')]('/',auth[_0xc905('0x9')](),controller[_0xc905('0x12')]);router['post'](_0xc905('0x13'),auth[_0xc905('0x9')](),controller['getPreview']);router[_0xc905('0x11')]('/timezone',auth[_0xc905('0x9')](),controller['getTimezone']);router[_0xc905('0x11')]('/previewrecall',auth[_0xc905('0x9')](),controller[_0xc905('0x14')]);router[_0xc905('0x15')](_0xc905('0xf'),auth[_0xc905('0x9')](),controller[_0xc905('0x16')]);router[_0xc905('0x17')](_0xc905('0xf'),auth[_0xc905('0x9')](),controller[_0xc905('0x18')]);module[_0xc905('0x19')]=router;