Built motion from commit (unavailable).|2.4.20
[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 _0x787e=['show','put','/:id','exports','multer','path','connect-timeout','Router','../../components/auth/service','../../config/environment','./chatApplication.controller','isAuthenticated'];(function(_0x1facfa,_0x1acf7d){var _0x9ec701=function(_0x115e37){while(--_0x115e37){_0x1facfa['push'](_0x1facfa['shift']());}};_0x9ec701(++_0x1acf7d);}(_0x787e,0xb8));var _0xe787=function(_0xe296cc,_0x50a0f4){_0xe296cc=_0xe296cc-0x0;var _0x3e7cf2=_0x787e[_0xe296cc];return _0x3e7cf2;};'use strict';var multer=require(_0xe787('0x0'));var util=require('util');var path=require(_0xe787('0x1'));var timeout=require(_0xe787('0x2'));var express=require('express');var router=express[_0xe787('0x3')]();var auth=require(_0xe787('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0xe787('0x5'));var controller=require(_0xe787('0x6'));router['get']('/:id',auth[_0xe787('0x7')](),controller[_0xe787('0x8')]);router[_0xe787('0x9')](_0xe787('0xa'),auth[_0xe787('0x7')](),controller['update']);router['delete'](_0xe787('0xa'),auth[_0xe787('0x7')](),controller['destroy']);module[_0xe787('0xb')]=router;