Built motion from commit (unavailable).|2.5.29
[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 _0x9f62=['express','Router','../../components/interaction/service','../../config/environment','./cmHopper.controller','get','index','/describe','isAuthenticated','describe','/:id','post','/preview','update','delete','destroy','exports','util','connect-timeout'];(function(_0x257017,_0x330627){var _0x38536d=function(_0xdf92e){while(--_0xdf92e){_0x257017['push'](_0x257017['shift']());}};_0x38536d(++_0x330627);}(_0x9f62,0x154));var _0x29f6=function(_0xaa7333,_0x25bbc0){_0xaa7333=_0xaa7333-0x0;var _0x5b9d6a=_0x9f62[_0xaa7333];return _0x5b9d6a;};'use strict';var multer=require('multer');var util=require(_0x29f6('0x0'));var path=require('path');var timeout=require(_0x29f6('0x1'));var express=require(_0x29f6('0x2'));var router=express[_0x29f6('0x3')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0x29f6('0x4'));var config=require(_0x29f6('0x5'));var controller=require(_0x29f6('0x6'));router[_0x29f6('0x7')]('/',auth['isAuthenticated'](),controller[_0x29f6('0x8')]);router[_0x29f6('0x7')](_0x29f6('0x9'),auth[_0x29f6('0xa')](),controller[_0x29f6('0xb')]);router['get']('/opencontacts',auth['isAuthenticated'](),controller['getOpenContacts']);router[_0x29f6('0x7')](_0x29f6('0xc'),auth['isAuthenticated'](),controller['show']);router[_0x29f6('0xd')]('/',auth[_0x29f6('0xa')](),controller['create']);router[_0x29f6('0xd')](_0x29f6('0xe'),auth['isAuthenticated'](),controller['getPreview']);router['put']('/:id',auth[_0x29f6('0xa')](),controller[_0x29f6('0xf')]);router[_0x29f6('0x10')](_0x29f6('0xc'),auth[_0x29f6('0xa')](),controller[_0x29f6('0x11')]);module[_0x29f6('0x12')]=router;