6385efd3440ea199d3cc493856e31896717dc455
[motion2.git] / server / api / openchannelApplication / 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 _0x26b7=['connect-timeout','Router','../../components/auth/service','../../components/interaction/service','./openchannelApplication.controller','index','get','show','post','isAuthenticated','create','put','/:id','destroy','exports','multer','util'];(function(_0xabd28d,_0x4970f9){var _0x5de556=function(_0x34b0a1){while(--_0x34b0a1){_0xabd28d['push'](_0xabd28d['shift']());}};_0x5de556(++_0x4970f9);}(_0x26b7,0xb9));var _0x726b=function(_0x2641f9,_0x26715f){_0x2641f9=_0x2641f9-0x0;var _0x585741=_0x26b7[_0x2641f9];return _0x585741;};'use strict';var multer=require(_0x726b('0x0'));var util=require(_0x726b('0x1'));var path=require('path');var timeout=require(_0x726b('0x2'));var express=require('express');var router=express[_0x726b('0x3')]();var auth=require(_0x726b('0x4'));var interaction=require(_0x726b('0x5'));var config=require('../../config/environment');var controller=require(_0x726b('0x6'));router['get']('/',auth['isAuthenticated'](),controller[_0x726b('0x7')]);router[_0x726b('0x8')]('/:id',auth['isAuthenticated'](),controller[_0x726b('0x9')]);router[_0x726b('0xa')]('/',auth[_0x726b('0xb')](),controller[_0x726b('0xc')]);router[_0x726b('0xd')](_0x726b('0xe'),auth[_0x726b('0xb')](),controller['update']);router['delete']('/:id',auth['isAuthenticated'](),controller[_0x726b('0xf')]);module[_0x726b('0x10')]=router;