Built motion from commit (unavailable).|2.5.3
[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 _0x4a37=['exports','multer','util','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./openchannelApplication.controller','get','isAuthenticated','index','show','post','put','delete','/:id'];(function(_0x1d388f,_0x44617f){var _0x1fc79d=function(_0x26c0b7){while(--_0x26c0b7){_0x1d388f['push'](_0x1d388f['shift']());}};_0x1fc79d(++_0x44617f);}(_0x4a37,0x1e7));var _0x74a3=function(_0x4db06a,_0x4fbdea){_0x4db06a=_0x4db06a-0x0;var _0x2cb17a=_0x4a37[_0x4db06a];return _0x2cb17a;};'use strict';var multer=require(_0x74a3('0x0'));var util=require(_0x74a3('0x1'));var path=require('path');var timeout=require(_0x74a3('0x2'));var express=require(_0x74a3('0x3'));var router=express[_0x74a3('0x4')]();var auth=require(_0x74a3('0x5'));var interaction=require(_0x74a3('0x6'));var config=require(_0x74a3('0x7'));var controller=require(_0x74a3('0x8'));router[_0x74a3('0x9')]('/',auth[_0x74a3('0xa')](),controller[_0x74a3('0xb')]);router[_0x74a3('0x9')]('/:id',auth[_0x74a3('0xa')](),controller[_0x74a3('0xc')]);router[_0x74a3('0xd')]('/',auth[_0x74a3('0xa')](),controller['create']);router[_0x74a3('0xe')]('/:id',auth[_0x74a3('0xa')](),controller['update']);router[_0x74a3('0xf')](_0x74a3('0x10'),auth[_0x74a3('0xa')](),controller['destroy']);module[_0x74a3('0x11')]=router;