Built motion from commit (unavailable).|2.5.10
[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 _0xac58=['delete','destroy','exports','multer','util','path','connect-timeout','../../components/auth/service','../../components/interaction/service','../../config/environment','./openchannelApplication.controller','get','isAuthenticated','index','/:id','show','post','create'];(function(_0x289f05,_0x1ce525){var _0x3f0807=function(_0x538b42){while(--_0x538b42){_0x289f05['push'](_0x289f05['shift']());}};_0x3f0807(++_0x1ce525);}(_0xac58,0x1d7));var _0x8ac5=function(_0x3eb996,_0x3a6765){_0x3eb996=_0x3eb996-0x0;var _0x530440=_0xac58[_0x3eb996];return _0x530440;};'use strict';var multer=require(_0x8ac5('0x0'));var util=require(_0x8ac5('0x1'));var path=require(_0x8ac5('0x2'));var timeout=require(_0x8ac5('0x3'));var express=require('express');var router=express['Router']();var auth=require(_0x8ac5('0x4'));var interaction=require(_0x8ac5('0x5'));var config=require(_0x8ac5('0x6'));var controller=require(_0x8ac5('0x7'));router[_0x8ac5('0x8')]('/',auth[_0x8ac5('0x9')](),controller[_0x8ac5('0xa')]);router['get'](_0x8ac5('0xb'),auth['isAuthenticated'](),controller[_0x8ac5('0xc')]);router[_0x8ac5('0xd')]('/',auth[_0x8ac5('0x9')](),controller[_0x8ac5('0xe')]);router['put'](_0x8ac5('0xb'),auth[_0x8ac5('0x9')](),controller['update']);router[_0x8ac5('0xf')](_0x8ac5('0xb'),auth['isAuthenticated'](),controller[_0x8ac5('0x10')]);module[_0x8ac5('0x11')]=router;