a64151e788845671bfe6edb5a74baa0528caf2fc
[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 _0x0f40=['connect-timeout','express','Router','fs-extra','../../components/auth/service','./openchannelApplication.controller','get','index','/:id','show','post','isAuthenticated','create','put','update','delete','destroy','multer','path'];(function(_0x30aa48,_0x39daef){var _0x283c7e=function(_0x174223){while(--_0x174223){_0x30aa48['push'](_0x30aa48['shift']());}};_0x283c7e(++_0x39daef);}(_0x0f40,0x17a));var _0x00f4=function(_0x1329eb,_0x486a85){_0x1329eb=_0x1329eb-0x0;var _0x7a2e77=_0x0f40[_0x1329eb];return _0x7a2e77;};'use strict';var multer=require(_0x00f4('0x0'));var util=require('util');var path=require(_0x00f4('0x1'));var timeout=require(_0x00f4('0x2'));var express=require(_0x00f4('0x3'));var router=express[_0x00f4('0x4')]();var fs_extra=require(_0x00f4('0x5'));var auth=require(_0x00f4('0x6'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x00f4('0x7'));router[_0x00f4('0x8')]('/',auth['isAuthenticated'](),controller[_0x00f4('0x9')]);router[_0x00f4('0x8')](_0x00f4('0xa'),auth['isAuthenticated'](),controller[_0x00f4('0xb')]);router[_0x00f4('0xc')]('/',auth[_0x00f4('0xd')](),controller[_0x00f4('0xe')]);router[_0x00f4('0xf')]('/:id',auth[_0x00f4('0xd')](),controller[_0x00f4('0x10')]);router[_0x00f4('0x11')](_0x00f4('0xa'),auth['isAuthenticated'](),controller[_0x00f4('0x12')]);module['exports']=router;