Built motion from commit 753c950e.|2.5.42
[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 _0x8091=['Router','../../components/auth/service','./openchannelApplication.controller','isAuthenticated','get','show','post','put','/:id','update','delete','destroy','exports','multer','util','path','express'];(function(_0x1928c9,_0x13a6d1){var _0x51b5fb=function(_0x24cf70){while(--_0x24cf70){_0x1928c9['push'](_0x1928c9['shift']());}};_0x51b5fb(++_0x13a6d1);}(_0x8091,0x73));var _0x1809=function(_0x3d4191,_0x5bce45){_0x3d4191=_0x3d4191-0x0;var _0x5a73f0=_0x8091[_0x3d4191];return _0x5a73f0;};'use strict';var multer=require(_0x1809('0x0'));var util=require(_0x1809('0x1'));var path=require(_0x1809('0x2'));var timeout=require('connect-timeout');var express=require(_0x1809('0x3'));var router=express[_0x1809('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0x1809('0x5'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x1809('0x6'));router['get']('/',auth[_0x1809('0x7')](),controller['index']);router[_0x1809('0x8')]('/:id',auth[_0x1809('0x7')](),controller[_0x1809('0x9')]);router[_0x1809('0xa')]('/',auth[_0x1809('0x7')](),controller['create']);router[_0x1809('0xb')](_0x1809('0xc'),auth[_0x1809('0x7')](),controller[_0x1809('0xd')]);router[_0x1809('0xe')](_0x1809('0xc'),auth['isAuthenticated'](),controller[_0x1809('0xf')]);module[_0x1809('0x10')]=router;