9df581ea3e3c8f296f4a1f2038ea84337f999a53
[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 _0x4aa8=['connect-timeout','Router','fs-extra','../../components/auth/service','../../components/interaction/service','./openchannelApplication.controller','get','index','isAuthenticated','show','post','create','/:id','update','delete','exports','path'];(function(_0x35af23,_0x9190f6){var _0x340506=function(_0xd4c26b){while(--_0xd4c26b){_0x35af23['push'](_0x35af23['shift']());}};_0x340506(++_0x9190f6);}(_0x4aa8,0xdc));var _0x84aa=function(_0x369151,_0x179f72){_0x369151=_0x369151-0x0;var _0x4292d5=_0x4aa8[_0x369151];return _0x4292d5;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x84aa('0x0'));var timeout=require(_0x84aa('0x1'));var express=require('express');var router=express[_0x84aa('0x2')]();var fs_extra=require(_0x84aa('0x3'));var auth=require(_0x84aa('0x4'));var interaction=require(_0x84aa('0x5'));var config=require('../../config/environment');var controller=require(_0x84aa('0x6'));router[_0x84aa('0x7')]('/',auth['isAuthenticated'](),controller[_0x84aa('0x8')]);router[_0x84aa('0x7')]('/:id',auth[_0x84aa('0x9')](),controller[_0x84aa('0xa')]);router[_0x84aa('0xb')]('/',auth['isAuthenticated'](),controller[_0x84aa('0xc')]);router['put'](_0x84aa('0xd'),auth[_0x84aa('0x9')](),controller[_0x84aa('0xe')]);router[_0x84aa('0xf')](_0x84aa('0xd'),auth[_0x84aa('0x9')](),controller['destroy']);module[_0x84aa('0x10')]=router;