Built motion from commit 9d1906d1.|2.5.40
[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 _0x785a=['../../components/interaction/service','../../config/environment','./openchannelApplication.controller','isAuthenticated','index','get','show','put','update','delete','/:id','destroy','util','path','connect-timeout','Router','../../components/auth/service'];(function(_0x399fab,_0x309cf0){var _0x28fd80=function(_0x353652){while(--_0x353652){_0x399fab['push'](_0x399fab['shift']());}};_0x28fd80(++_0x309cf0);}(_0x785a,0x94));var _0xa785=function(_0x415937,_0x261b38){_0x415937=_0x415937-0x0;var _0x2f8070=_0x785a[_0x415937];return _0x2f8070;};'use strict';var multer=require('multer');var util=require(_0xa785('0x0'));var path=require(_0xa785('0x1'));var timeout=require(_0xa785('0x2'));var express=require('express');var router=express[_0xa785('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0xa785('0x4'));var interaction=require(_0xa785('0x5'));var config=require(_0xa785('0x6'));var controller=require(_0xa785('0x7'));router['get']('/',auth[_0xa785('0x8')](),controller[_0xa785('0x9')]);router[_0xa785('0xa')]('/:id',auth[_0xa785('0x8')](),controller[_0xa785('0xb')]);router['post']('/',auth[_0xa785('0x8')](),controller['create']);router[_0xa785('0xc')]('/:id',auth['isAuthenticated'](),controller[_0xa785('0xd')]);router[_0xa785('0xe')](_0xa785('0xf'),auth[_0xa785('0x8')](),controller[_0xa785('0x10')]);module['exports']=router;