Built motion from commit 47436d59.|2.6.7
[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 _0x37c3=['put','update','delete','destroy','exports','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','get','isAuthenticated','index','/:id','show','post','create'];(function(_0x8d0c85,_0x576308){var _0x21920e=function(_0x5ce4f5){while(--_0x5ce4f5){_0x8d0c85['push'](_0x8d0c85['shift']());}};_0x21920e(++_0x576308);}(_0x37c3,0xb0));var _0x337c=function(_0x463cdd,_0x2af98a){_0x463cdd=_0x463cdd-0x0;var _0x29e7fa=_0x37c3[_0x463cdd];return _0x29e7fa;};'use strict';var multer=require('multer');var util=require(_0x337c('0x0'));var path=require(_0x337c('0x1'));var timeout=require(_0x337c('0x2'));var express=require(_0x337c('0x3'));var router=express[_0x337c('0x4')]();var fs_extra=require(_0x337c('0x5'));var auth=require(_0x337c('0x6'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require('./openchannelApplication.controller');router[_0x337c('0x7')]('/',auth[_0x337c('0x8')](),controller[_0x337c('0x9')]);router[_0x337c('0x7')](_0x337c('0xa'),auth['isAuthenticated'](),controller[_0x337c('0xb')]);router[_0x337c('0xc')]('/',auth[_0x337c('0x8')](),controller[_0x337c('0xd')]);router[_0x337c('0xe')](_0x337c('0xa'),auth['isAuthenticated'](),controller[_0x337c('0xf')]);router[_0x337c('0x10')](_0x337c('0xa'),auth['isAuthenticated'](),controller[_0x337c('0x11')]);module[_0x337c('0x12')]=router;