Built motion from commit 9d0783e6.|2.6.13
[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 _0xd78e=['connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./chatApplication.controller','isAuthenticated','put','update','delete','/:id','exports','util','path'];(function(_0x1aab74,_0x38a57b){var _0x396af2=function(_0x1c2e0d){while(--_0x1c2e0d){_0x1aab74['push'](_0x1aab74['shift']());}};_0x396af2(++_0x38a57b);}(_0xd78e,0xce));var _0xed78=function(_0x5ddb1c,_0x5ea4df){_0x5ddb1c=_0x5ddb1c-0x0;var _0x354adc=_0xd78e[_0x5ddb1c];return _0x354adc;};'use strict';var multer=require('multer');var util=require(_0xed78('0x0'));var path=require(_0xed78('0x1'));var timeout=require(_0xed78('0x2'));var express=require(_0xed78('0x3'));var router=express[_0xed78('0x4')]();var fs_extra=require(_0xed78('0x5'));var auth=require(_0xed78('0x6'));var interaction=require(_0xed78('0x7'));var config=require(_0xed78('0x8'));var controller=require(_0xed78('0x9'));router['get']('/:id',auth[_0xed78('0xa')](),controller['show']);router[_0xed78('0xb')]('/:id',auth[_0xed78('0xa')](),controller[_0xed78('0xc')]);router[_0xed78('0xd')](_0xed78('0xe'),auth[_0xed78('0xa')](),controller['destroy']);module[_0xed78('0xf')]=router;