4478ddf2a4b831baf2e437665d79a564bd8703eb
[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 _0x9a73=['get','show','put','/:id','isAuthenticated','delete','destroy','exports','multer','path','express','fs-extra','../../components/auth/service','./chatApplication.controller'];(function(_0x28068a,_0x5bf598){var _0x73c877=function(_0x3ce275){while(--_0x3ce275){_0x28068a['push'](_0x28068a['shift']());}};_0x73c877(++_0x5bf598);}(_0x9a73,0x104));var _0x39a7=function(_0x17d9e3,_0x1f969c){_0x17d9e3=_0x17d9e3-0x0;var _0x14192d=_0x9a73[_0x17d9e3];return _0x14192d;};'use strict';var multer=require(_0x39a7('0x0'));var util=require('util');var path=require(_0x39a7('0x1'));var timeout=require('connect-timeout');var express=require(_0x39a7('0x2'));var router=express['Router']();var fs_extra=require(_0x39a7('0x3'));var auth=require(_0x39a7('0x4'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x39a7('0x5'));router[_0x39a7('0x6')]('/:id',auth['isAuthenticated'](),controller[_0x39a7('0x7')]);router[_0x39a7('0x8')](_0x39a7('0x9'),auth[_0x39a7('0xa')](),controller['update']);router[_0x39a7('0xb')]('/:id',auth[_0x39a7('0xa')](),controller[_0x39a7('0xc')]);module[_0x39a7('0xd')]=router;