8957567b6ab50eb0fb26a5eb59ffd7dd7d1e0347
[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 _0x816b=['show','post','create','put','update','delete','destroy','exports','path','express','Router','fs-extra','../../components/interaction/service','../../config/environment','./openchannelApplication.controller','get','isAuthenticated','index','/:id'];(function(_0x565ed7,_0x398228){var _0x183ad7=function(_0x5a43d7){while(--_0x5a43d7){_0x565ed7['push'](_0x565ed7['shift']());}};_0x183ad7(++_0x398228);}(_0x816b,0xb3));var _0xb816=function(_0x4f8924,_0x2679cd){_0x4f8924=_0x4f8924-0x0;var _0x86f8c0=_0x816b[_0x4f8924];return _0x86f8c0;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0xb816('0x0'));var timeout=require('connect-timeout');var express=require(_0xb816('0x1'));var router=express[_0xb816('0x2')]();var fs_extra=require(_0xb816('0x3'));var auth=require('../../components/auth/service');var interaction=require(_0xb816('0x4'));var config=require(_0xb816('0x5'));var controller=require(_0xb816('0x6'));router[_0xb816('0x7')]('/',auth[_0xb816('0x8')](),controller[_0xb816('0x9')]);router['get'](_0xb816('0xa'),auth[_0xb816('0x8')](),controller[_0xb816('0xb')]);router[_0xb816('0xc')]('/',auth[_0xb816('0x8')](),controller[_0xb816('0xd')]);router[_0xb816('0xe')]('/:id',auth[_0xb816('0x8')](),controller[_0xb816('0xf')]);router[_0xb816('0x10')](_0xb816('0xa'),auth['isAuthenticated'](),controller[_0xb816('0x11')]);module[_0xb816('0x12')]=router;