Built motion from commit da617fac.|2.6.6
[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 _0x5437=['exports','util','path','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./openchannelApplication.controller','get','isAuthenticated','/:id','show','post','put','update','delete','destroy'];(function(_0x5667a9,_0x564cc9){var _0x3dca31=function(_0x13c11f){while(--_0x13c11f){_0x5667a9['push'](_0x5667a9['shift']());}};_0x3dca31(++_0x564cc9);}(_0x5437,0x1b6));var _0x7543=function(_0x37de50,_0x27f82a){_0x37de50=_0x37de50-0x0;var _0x2c37dc=_0x5437[_0x37de50];return _0x2c37dc;};'use strict';var multer=require('multer');var util=require(_0x7543('0x0'));var path=require(_0x7543('0x1'));var timeout=require('connect-timeout');var express=require(_0x7543('0x2'));var router=express[_0x7543('0x3')]();var fs_extra=require(_0x7543('0x4'));var auth=require(_0x7543('0x5'));var interaction=require(_0x7543('0x6'));var config=require(_0x7543('0x7'));var controller=require(_0x7543('0x8'));router[_0x7543('0x9')]('/',auth[_0x7543('0xa')](),controller['index']);router[_0x7543('0x9')](_0x7543('0xb'),auth['isAuthenticated'](),controller[_0x7543('0xc')]);router[_0x7543('0xd')]('/',auth['isAuthenticated'](),controller['create']);router[_0x7543('0xe')](_0x7543('0xb'),auth[_0x7543('0xa')](),controller[_0x7543('0xf')]);router[_0x7543('0x10')](_0x7543('0xb'),auth[_0x7543('0xa')](),controller[_0x7543('0x11')]);module[_0x7543('0x12')]=router;