Built motion from commit (unavailable).|2.5.15
[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 _0xbdb4=['../../components/auth/service','../../components/interaction/service','./openchannelApplication.controller','get','isAuthenticated','index','/:id','post','create','put','update','delete','destroy','multer','path'];(function(_0x1c8abb,_0x4fe2f9){var _0x58eb71=function(_0x5ee26a){while(--_0x5ee26a){_0x1c8abb['push'](_0x1c8abb['shift']());}};_0x58eb71(++_0x4fe2f9);}(_0xbdb4,0x85));var _0x4bdb=function(_0x39de21,_0x47c96f){_0x39de21=_0x39de21-0x0;var _0x50f43f=_0xbdb4[_0x39de21];return _0x50f43f;};'use strict';var multer=require(_0x4bdb('0x0'));var util=require('util');var path=require(_0x4bdb('0x1'));var timeout=require('connect-timeout');var express=require('express');var router=express['Router']();var auth=require(_0x4bdb('0x2'));var interaction=require(_0x4bdb('0x3'));var config=require('../../config/environment');var controller=require(_0x4bdb('0x4'));router[_0x4bdb('0x5')]('/',auth[_0x4bdb('0x6')](),controller[_0x4bdb('0x7')]);router[_0x4bdb('0x5')](_0x4bdb('0x8'),auth[_0x4bdb('0x6')](),controller['show']);router[_0x4bdb('0x9')]('/',auth['isAuthenticated'](),controller[_0x4bdb('0xa')]);router[_0x4bdb('0xb')](_0x4bdb('0x8'),auth[_0x4bdb('0x6')](),controller[_0x4bdb('0xc')]);router[_0x4bdb('0xd')](_0x4bdb('0x8'),auth['isAuthenticated'](),controller[_0x4bdb('0xe')]);module['exports']=router;