Built motion from commit efa66e19.|2.6.22
[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 _0x851e=['util','path','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./openchannelApplication.controller','get','isAuthenticated','index','/:id','show','post','create','put','delete','destroy','multer'];(function(_0x2ddb6d,_0x25d45b){var _0x56c103=function(_0x4f73c4){while(--_0x4f73c4){_0x2ddb6d['push'](_0x2ddb6d['shift']());}};_0x56c103(++_0x25d45b);}(_0x851e,0x1df));var _0xe851=function(_0x412b2a,_0x11fb8a){_0x412b2a=_0x412b2a-0x0;var _0x5872e3=_0x851e[_0x412b2a];return _0x5872e3;};'use strict';var multer=require(_0xe851('0x0'));var util=require(_0xe851('0x1'));var path=require(_0xe851('0x2'));var timeout=require('connect-timeout');var express=require(_0xe851('0x3'));var router=express[_0xe851('0x4')]();var fs_extra=require(_0xe851('0x5'));var auth=require(_0xe851('0x6'));var interaction=require(_0xe851('0x7'));var config=require(_0xe851('0x8'));var controller=require(_0xe851('0x9'));router[_0xe851('0xa')]('/',auth[_0xe851('0xb')](),controller[_0xe851('0xc')]);router[_0xe851('0xa')](_0xe851('0xd'),auth[_0xe851('0xb')](),controller[_0xe851('0xe')]);router[_0xe851('0xf')]('/',auth[_0xe851('0xb')](),controller[_0xe851('0x10')]);router[_0xe851('0x11')](_0xe851('0xd'),auth['isAuthenticated'](),controller['update']);router[_0xe851('0x12')](_0xe851('0xd'),auth[_0xe851('0xb')](),controller[_0xe851('0x13')]);module['exports']=router;