Built motion from commit 3c2ce842.|2.6.31
[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 _0xe064=['Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./openchannelApplication.controller','get','isAuthenticated','/:id','create','put','update','destroy','exports','multer','path'];(function(_0x434db2,_0x113541){var _0x4e9284=function(_0x5d59b4){while(--_0x5d59b4){_0x434db2['push'](_0x434db2['shift']());}};_0x4e9284(++_0x113541);}(_0xe064,0x9e));var _0x4e06=function(_0x260e4b,_0x54668d){_0x260e4b=_0x260e4b-0x0;var _0x18dfba=_0xe064[_0x260e4b];return _0x18dfba;};'use strict';var multer=require(_0x4e06('0x0'));var util=require('util');var path=require(_0x4e06('0x1'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x4e06('0x2')]();var fs_extra=require(_0x4e06('0x3'));var auth=require(_0x4e06('0x4'));var interaction=require(_0x4e06('0x5'));var config=require(_0x4e06('0x6'));var controller=require(_0x4e06('0x7'));router[_0x4e06('0x8')]('/',auth[_0x4e06('0x9')](),controller['index']);router['get'](_0x4e06('0xa'),auth[_0x4e06('0x9')](),controller['show']);router['post']('/',auth['isAuthenticated'](),controller[_0x4e06('0xb')]);router[_0x4e06('0xc')](_0x4e06('0xa'),auth[_0x4e06('0x9')](),controller[_0x4e06('0xd')]);router['delete']('/:id',auth[_0x4e06('0x9')](),controller[_0x4e06('0xe')]);module[_0x4e06('0xf')]=router;