8275c8432261d93c1cceff06cbaa6d997b957075
[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 _0x71d0=['fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./openchannelApplication.controller','get','isAuthenticated','index','/:id','show','post','put','delete','destroy','exports','util','connect-timeout','Router'];(function(_0x401609,_0x5eb61d){var _0x35fd57=function(_0x5dcddd){while(--_0x5dcddd){_0x401609['push'](_0x401609['shift']());}};_0x35fd57(++_0x5eb61d);}(_0x71d0,0xe7));var _0x071d=function(_0x55e3d2,_0x4b95f0){_0x55e3d2=_0x55e3d2-0x0;var _0x230629=_0x71d0[_0x55e3d2];return _0x230629;};'use strict';var multer=require('multer');var util=require(_0x071d('0x0'));var path=require('path');var timeout=require(_0x071d('0x1'));var express=require('express');var router=express[_0x071d('0x2')]();var fs_extra=require(_0x071d('0x3'));var auth=require(_0x071d('0x4'));var interaction=require(_0x071d('0x5'));var config=require(_0x071d('0x6'));var controller=require(_0x071d('0x7'));router[_0x071d('0x8')]('/',auth[_0x071d('0x9')](),controller[_0x071d('0xa')]);router[_0x071d('0x8')](_0x071d('0xb'),auth[_0x071d('0x9')](),controller[_0x071d('0xc')]);router[_0x071d('0xd')]('/',auth[_0x071d('0x9')](),controller['create']);router[_0x071d('0xe')](_0x071d('0xb'),auth[_0x071d('0x9')](),controller['update']);router[_0x071d('0xf')](_0x071d('0xb'),auth['isAuthenticated'](),controller[_0x071d('0x10')]);module[_0x071d('0x11')]=router;