Built motion from commit f7863d46.|2.5.41
[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 _0x1ae6=['exports','multer','util','connect-timeout','Router','fs-extra','../../components/auth/service','./openchannelApplication.controller','get','index','/:id','isAuthenticated','post','create','update','delete','destroy'];(function(_0x5c54e0,_0x3d8d7a){var _0xd6345d=function(_0x20f9e9){while(--_0x20f9e9){_0x5c54e0['push'](_0x5c54e0['shift']());}};_0xd6345d(++_0x3d8d7a);}(_0x1ae6,0x177));var _0x61ae=function(_0x501510,_0x61caa9){_0x501510=_0x501510-0x0;var _0x1e6ee5=_0x1ae6[_0x501510];return _0x1e6ee5;};'use strict';var multer=require(_0x61ae('0x0'));var util=require(_0x61ae('0x1'));var path=require('path');var timeout=require(_0x61ae('0x2'));var express=require('express');var router=express[_0x61ae('0x3')]();var fs_extra=require(_0x61ae('0x4'));var auth=require(_0x61ae('0x5'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x61ae('0x6'));router[_0x61ae('0x7')]('/',auth['isAuthenticated'](),controller[_0x61ae('0x8')]);router[_0x61ae('0x7')](_0x61ae('0x9'),auth[_0x61ae('0xa')](),controller['show']);router[_0x61ae('0xb')]('/',auth[_0x61ae('0xa')](),controller[_0x61ae('0xc')]);router['put'](_0x61ae('0x9'),auth['isAuthenticated'](),controller[_0x61ae('0xd')]);router[_0x61ae('0xe')](_0x61ae('0x9'),auth[_0x61ae('0xa')](),controller[_0x61ae('0xf')]);module[_0x61ae('0x10')]=router;