Built motion from commit 82bb2304.|2.5.39
[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 _0xeaea=['connect-timeout','Router','../../config/environment','get','isAuthenticated','index','show','post','create','put','delete','/:id','exports','util','path'];(function(_0x2fe8ca,_0x3b700f){var _0x3a8295=function(_0x1e4119){while(--_0x1e4119){_0x2fe8ca['push'](_0x2fe8ca['shift']());}};_0x3a8295(++_0x3b700f);}(_0xeaea,0x1c0));var _0xaeae=function(_0x3511d3,_0x4107ae){_0x3511d3=_0x3511d3-0x0;var _0x5d6321=_0xeaea[_0x3511d3];return _0x5d6321;};'use strict';var multer=require('multer');var util=require(_0xaeae('0x0'));var path=require(_0xaeae('0x1'));var timeout=require(_0xaeae('0x2'));var express=require('express');var router=express[_0xaeae('0x3')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0xaeae('0x4'));var controller=require('./openchannelApplication.controller');router[_0xaeae('0x5')]('/',auth[_0xaeae('0x6')](),controller[_0xaeae('0x7')]);router[_0xaeae('0x5')]('/:id',auth['isAuthenticated'](),controller[_0xaeae('0x8')]);router[_0xaeae('0x9')]('/',auth[_0xaeae('0x6')](),controller[_0xaeae('0xa')]);router[_0xaeae('0xb')]('/:id',auth['isAuthenticated'](),controller['update']);router[_0xaeae('0xc')](_0xaeae('0xd'),auth[_0xaeae('0x6')](),controller['destroy']);module[_0xaeae('0xe')]=router;