8f012a39b7fa4b669c0c41a0d50be60680ef8bfb
[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 _0x13bc=['../../components/auth/service','../../components/interaction/service','../../config/environment','./openchannelApplication.controller','get','isAuthenticated','index','post','create','put','/:id','delete','destroy','exports','multer','util','path','connect-timeout','express','Router'];(function(_0x3233c3,_0x15e5fa){var _0x36029b=function(_0xe3dd12){while(--_0xe3dd12){_0x3233c3['push'](_0x3233c3['shift']());}};_0x36029b(++_0x15e5fa);}(_0x13bc,0xea));var _0xc13b=function(_0x248b72,_0xee1b96){_0x248b72=_0x248b72-0x0;var _0x4f6596=_0x13bc[_0x248b72];return _0x4f6596;};'use strict';var multer=require(_0xc13b('0x0'));var util=require(_0xc13b('0x1'));var path=require(_0xc13b('0x2'));var timeout=require(_0xc13b('0x3'));var express=require(_0xc13b('0x4'));var router=express[_0xc13b('0x5')]();var auth=require(_0xc13b('0x6'));var interaction=require(_0xc13b('0x7'));var config=require(_0xc13b('0x8'));var controller=require(_0xc13b('0x9'));router[_0xc13b('0xa')]('/',auth[_0xc13b('0xb')](),controller[_0xc13b('0xc')]);router[_0xc13b('0xa')]('/:id',auth[_0xc13b('0xb')](),controller['show']);router[_0xc13b('0xd')]('/',auth[_0xc13b('0xb')](),controller[_0xc13b('0xe')]);router[_0xc13b('0xf')](_0xc13b('0x10'),auth['isAuthenticated'](),controller['update']);router[_0xc13b('0x11')](_0xc13b('0x10'),auth['isAuthenticated'](),controller[_0xc13b('0x12')]);module[_0xc13b('0x13')]=router;