35da5c01443f7135df298be5329ef39bec9ac78b
[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 _0x4187=['update','delete','destroy','multer','util','path','express','Router','../../components/interaction/service','../../config/environment','./chatApplication.controller','get','/:id','isAuthenticated'];(function(_0x3e0b8f,_0x1cddeb){var _0x22f742=function(_0xacb1bc){while(--_0xacb1bc){_0x3e0b8f['push'](_0x3e0b8f['shift']());}};_0x22f742(++_0x1cddeb);}(_0x4187,0x8f));var _0x7418=function(_0x315552,_0x461852){_0x315552=_0x315552-0x0;var _0x18fa0a=_0x4187[_0x315552];return _0x18fa0a;};'use strict';var multer=require(_0x7418('0x0'));var util=require(_0x7418('0x1'));var path=require(_0x7418('0x2'));var timeout=require('connect-timeout');var express=require(_0x7418('0x3'));var router=express[_0x7418('0x4')]();var auth=require('../../components/auth/service');var interaction=require(_0x7418('0x5'));var config=require(_0x7418('0x6'));var controller=require(_0x7418('0x7'));router[_0x7418('0x8')](_0x7418('0x9'),auth[_0x7418('0xa')](),controller['show']);router['put']('/:id',auth[_0x7418('0xa')](),controller[_0x7418('0xb')]);router[_0x7418('0xc')]('/:id',auth[_0x7418('0xa')](),controller[_0x7418('0xd')]);module['exports']=router;