Built motion from commit (unavailable).|2.5.4
[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 _0xca6a=['path','connect-timeout','express','../../components/auth/service','../../components/interaction/service','./chatApplication.controller','get','show','/:id','isAuthenticated','destroy','exports','multer','util'];(function(_0x5ac8f8,_0x3739a5){var _0x1ce084=function(_0x4dcaed){while(--_0x4dcaed){_0x5ac8f8['push'](_0x5ac8f8['shift']());}};_0x1ce084(++_0x3739a5);}(_0xca6a,0x186));var _0xaca6=function(_0x5f3f88,_0x562baf){_0x5f3f88=_0x5f3f88-0x0;var _0xd08119=_0xca6a[_0x5f3f88];return _0xd08119;};'use strict';var multer=require(_0xaca6('0x0'));var util=require(_0xaca6('0x1'));var path=require(_0xaca6('0x2'));var timeout=require(_0xaca6('0x3'));var express=require(_0xaca6('0x4'));var router=express['Router']();var auth=require(_0xaca6('0x5'));var interaction=require(_0xaca6('0x6'));var config=require('../../config/environment');var controller=require(_0xaca6('0x7'));router[_0xaca6('0x8')]('/:id',auth['isAuthenticated'](),controller[_0xaca6('0x9')]);router['put']('/:id',auth['isAuthenticated'](),controller['update']);router['delete'](_0xaca6('0xa'),auth[_0xaca6('0xb')](),controller[_0xaca6('0xc')]);module[_0xaca6('0xd')]=router;