Built motion from commit 0900f080.|2.5.45
[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 _0x7a58=['Router','fs-extra','../../config/environment','./openchannelApplication.controller','get','isAuthenticated','index','/:id','post','update','delete','destroy','multer','util','path','connect-timeout','express'];(function(_0x3a4b1f,_0x5cf288){var _0x1081c0=function(_0x4d964a){while(--_0x4d964a){_0x3a4b1f['push'](_0x3a4b1f['shift']());}};_0x1081c0(++_0x5cf288);}(_0x7a58,0x11c));var _0x87a5=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x7a58[_0x3dd15e];return _0x231fd0;};'use strict';var multer=require(_0x87a5('0x0'));var util=require(_0x87a5('0x1'));var path=require(_0x87a5('0x2'));var timeout=require(_0x87a5('0x3'));var express=require(_0x87a5('0x4'));var router=express[_0x87a5('0x5')]();var fs_extra=require(_0x87a5('0x6'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x87a5('0x7'));var controller=require(_0x87a5('0x8'));router[_0x87a5('0x9')]('/',auth[_0x87a5('0xa')](),controller[_0x87a5('0xb')]);router[_0x87a5('0x9')](_0x87a5('0xc'),auth[_0x87a5('0xa')](),controller['show']);router[_0x87a5('0xd')]('/',auth[_0x87a5('0xa')](),controller['create']);router['put'](_0x87a5('0xc'),auth[_0x87a5('0xa')](),controller[_0x87a5('0xe')]);router[_0x87a5('0xf')](_0x87a5('0xc'),auth[_0x87a5('0xa')](),controller[_0x87a5('0x10')]);module['exports']=router;