Built motion from commit (unavailable).|2.5.6
[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 _0x4f2f=['connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./cmHopper.controller','get','isAuthenticated','index','/describe','/opencontacts','getOpenContacts','/:id','post','/preview','getPreview','put','delete','exports','path'];(function(_0xaed320,_0x279f14){var _0x29b095=function(_0x5ba5d6){while(--_0x5ba5d6){_0xaed320['push'](_0xaed320['shift']());}};_0x29b095(++_0x279f14);}(_0x4f2f,0x1cb));var _0xf4f2=function(_0x34bf97,_0xc60f9d){_0x34bf97=_0x34bf97-0x0;var _0x292719=_0x4f2f[_0x34bf97];return _0x292719;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0xf4f2('0x0'));var timeout=require(_0xf4f2('0x1'));var express=require('express');var router=express[_0xf4f2('0x2')]();var auth=require(_0xf4f2('0x3'));var interaction=require(_0xf4f2('0x4'));var config=require(_0xf4f2('0x5'));var controller=require(_0xf4f2('0x6'));router[_0xf4f2('0x7')]('/',auth[_0xf4f2('0x8')](),controller[_0xf4f2('0x9')]);router[_0xf4f2('0x7')](_0xf4f2('0xa'),auth[_0xf4f2('0x8')](),controller['describe']);router[_0xf4f2('0x7')](_0xf4f2('0xb'),auth['isAuthenticated'](),controller[_0xf4f2('0xc')]);router[_0xf4f2('0x7')](_0xf4f2('0xd'),auth[_0xf4f2('0x8')](),controller['show']);router['post']('/',auth['isAuthenticated'](),controller['create']);router[_0xf4f2('0xe')](_0xf4f2('0xf'),auth['isAuthenticated'](),controller[_0xf4f2('0x10')]);router[_0xf4f2('0x11')]('/:id',auth[_0xf4f2('0x8')](),controller['update']);router[_0xf4f2('0x12')](_0xf4f2('0xd'),auth[_0xf4f2('0x8')](),controller['destroy']);module[_0xf4f2('0x13')]=router;