a8762d3455b4730536b429bc8c5a829f6076ce65
[motion2.git] / server / api / chatApplication / 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 _0x5387=['Router','../../config/environment','./chatApplication.controller','get','/:id','isAuthenticated','show','put','update','delete','destroy','exports','multer','util','path','connect-timeout'];(function(_0xe38d8c,_0x5c1fad){var _0x4d9e0b=function(_0x1db29f){while(--_0x1db29f){_0xe38d8c['push'](_0xe38d8c['shift']());}};_0x4d9e0b(++_0x5c1fad);}(_0x5387,0x12c));var _0x7538=function(_0x268911,_0x29326e){_0x268911=_0x268911-0x0;var _0xe527da=_0x5387[_0x268911];return _0xe527da;};'use strict';var multer=require(_0x7538('0x0'));var util=require(_0x7538('0x1'));var path=require(_0x7538('0x2'));var timeout=require(_0x7538('0x3'));var express=require('express');var router=express[_0x7538('0x4')]();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x7538('0x5'));var controller=require(_0x7538('0x6'));router[_0x7538('0x7')](_0x7538('0x8'),auth[_0x7538('0x9')](),controller[_0x7538('0xa')]);router[_0x7538('0xb')](_0x7538('0x8'),auth['isAuthenticated'](),controller[_0x7538('0xc')]);router[_0x7538('0xd')]('/:id',auth[_0x7538('0x9')](),controller[_0x7538('0xe')]);module[_0x7538('0xf')]=router;