da82ec48826b283e4bb301eb9d172e53f63108bd
[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 _0xe603=['fs-extra','../../components/auth/service','../../config/environment','./openchannelApplication.controller','get','isAuthenticated','index','show','post','create','put','/:id','exports','multer','util','path','Router'];(function(_0x4f08dd,_0x3784ec){var _0x3017ee=function(_0x7d95be){while(--_0x7d95be){_0x4f08dd['push'](_0x4f08dd['shift']());}};_0x3017ee(++_0x3784ec);}(_0xe603,0x73));var _0x3e60=function(_0x21a03b,_0x4ccc8c){_0x21a03b=_0x21a03b-0x0;var _0x20a7ba=_0xe603[_0x21a03b];return _0x20a7ba;};'use strict';var multer=require(_0x3e60('0x0'));var util=require(_0x3e60('0x1'));var path=require(_0x3e60('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x3e60('0x3')]();var fs_extra=require(_0x3e60('0x4'));var auth=require(_0x3e60('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x3e60('0x6'));var controller=require(_0x3e60('0x7'));router[_0x3e60('0x8')]('/',auth[_0x3e60('0x9')](),controller[_0x3e60('0xa')]);router[_0x3e60('0x8')]('/:id',auth['isAuthenticated'](),controller[_0x3e60('0xb')]);router[_0x3e60('0xc')]('/',auth[_0x3e60('0x9')](),controller[_0x3e60('0xd')]);router[_0x3e60('0xe')]('/:id',auth[_0x3e60('0x9')](),controller['update']);router['delete'](_0x3e60('0xf'),auth[_0x3e60('0x9')](),controller['destroy']);module[_0x3e60('0x10')]=router;