Built motion from commit (unavailable).|2.5.27
[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 _0xb427=['Router','../../config/environment','./openchannelApplication.controller','get','isAuthenticated','index','/:id','post','create','put','destroy','exports','util','express'];(function(_0x390d49,_0x1af9dd){var _0x533cea=function(_0x33458b){while(--_0x33458b){_0x390d49['push'](_0x390d49['shift']());}};_0x533cea(++_0x1af9dd);}(_0xb427,0x98));var _0x7b42=function(_0xc5eaba,_0x5321d5){_0xc5eaba=_0xc5eaba-0x0;var _0x1a4cba=_0xb427[_0xc5eaba];return _0x1a4cba;};'use strict';var multer=require('multer');var util=require(_0x7b42('0x0'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x7b42('0x1'));var router=express[_0x7b42('0x2')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x7b42('0x3'));var controller=require(_0x7b42('0x4'));router[_0x7b42('0x5')]('/',auth[_0x7b42('0x6')](),controller[_0x7b42('0x7')]);router['get'](_0x7b42('0x8'),auth['isAuthenticated'](),controller['show']);router[_0x7b42('0x9')]('/',auth[_0x7b42('0x6')](),controller[_0x7b42('0xa')]);router[_0x7b42('0xb')]('/:id',auth['isAuthenticated'](),controller['update']);router['delete'](_0x7b42('0x8'),auth[_0x7b42('0x6')](),controller[_0x7b42('0xc')]);module[_0x7b42('0xd')]=router;