Built motion from commit e6806ed6.|2.6.0
[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 _0xdaf7=['util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./openchannelApplication.controller','isAuthenticated','index','get','show','post','create','/:id','update','destroy','multer'];(function(_0x58eec7,_0x2353db){var _0x25c5d3=function(_0x1ae895){while(--_0x1ae895){_0x58eec7['push'](_0x58eec7['shift']());}};_0x25c5d3(++_0x2353db);}(_0xdaf7,0xb3));var _0x7daf=function(_0x3967b9,_0xdae4b){_0x3967b9=_0x3967b9-0x0;var _0x7dc381=_0xdaf7[_0x3967b9];return _0x7dc381;};'use strict';var multer=require(_0x7daf('0x0'));var util=require(_0x7daf('0x1'));var path=require(_0x7daf('0x2'));var timeout=require(_0x7daf('0x3'));var express=require(_0x7daf('0x4'));var router=express[_0x7daf('0x5')]();var fs_extra=require(_0x7daf('0x6'));var auth=require(_0x7daf('0x7'));var interaction=require(_0x7daf('0x8'));var config=require(_0x7daf('0x9'));var controller=require(_0x7daf('0xa'));router['get']('/',auth[_0x7daf('0xb')](),controller[_0x7daf('0xc')]);router[_0x7daf('0xd')]('/:id',auth['isAuthenticated'](),controller[_0x7daf('0xe')]);router[_0x7daf('0xf')]('/',auth[_0x7daf('0xb')](),controller[_0x7daf('0x10')]);router['put'](_0x7daf('0x11'),auth[_0x7daf('0xb')](),controller[_0x7daf('0x12')]);router['delete'](_0x7daf('0x11'),auth['isAuthenticated'](),controller[_0x7daf('0x13')]);module['exports']=router;