8602c1ce480f4cb5bb92ffd387a9132afbccb68f
[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 _0x147f=['./openchannelApplication.controller','isAuthenticated','get','/:id','show','create','put','update','delete','destroy','exports','util','path','connect-timeout','Router','../../config/environment'];(function(_0x2b26d5,_0x4cf4e2){var _0x75b8e0=function(_0x4f5e94){while(--_0x4f5e94){_0x2b26d5['push'](_0x2b26d5['shift']());}};_0x75b8e0(++_0x4cf4e2);}(_0x147f,0xab));var _0xf147=function(_0x5d0b4f,_0x4fcc3a){_0x5d0b4f=_0x5d0b4f-0x0;var _0x52698c=_0x147f[_0x5d0b4f];return _0x52698c;};'use strict';var multer=require('multer');var util=require(_0xf147('0x0'));var path=require(_0xf147('0x1'));var timeout=require(_0xf147('0x2'));var express=require('express');var router=express[_0xf147('0x3')]();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0xf147('0x4'));var controller=require(_0xf147('0x5'));router['get']('/',auth[_0xf147('0x6')](),controller['index']);router[_0xf147('0x7')](_0xf147('0x8'),auth['isAuthenticated'](),controller[_0xf147('0x9')]);router['post']('/',auth['isAuthenticated'](),controller[_0xf147('0xa')]);router[_0xf147('0xb')](_0xf147('0x8'),auth['isAuthenticated'](),controller[_0xf147('0xc')]);router[_0xf147('0xd')](_0xf147('0x8'),auth[_0xf147('0x6')](),controller[_0xf147('0xe')]);module[_0xf147('0xf')]=router;