d704d13e79a6ba71e7f215f84bf52b839fcaeca7
[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 _0x7788=['/:id','isAuthenticated','update','delete','exports','util','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','get','show','put'];(function(_0x5aaa9d,_0x4b0f93){var _0x18de9e=function(_0x19d550){while(--_0x19d550){_0x5aaa9d['push'](_0x5aaa9d['shift']());}};_0x18de9e(++_0x4b0f93);}(_0x7788,0x139));var _0x8778=function(_0x3ba422,_0x53303c){_0x3ba422=_0x3ba422-0x0;var _0x20b5dd=_0x7788[_0x3ba422];return _0x20b5dd;};'use strict';var multer=require('multer');var util=require(_0x8778('0x0'));var path=require('path');var timeout=require(_0x8778('0x1'));var express=require('express');var router=express[_0x8778('0x2')]();var fs_extra=require('fs-extra');var auth=require(_0x8778('0x3'));var interaction=require(_0x8778('0x4'));var config=require(_0x8778('0x5'));var controller=require('./chatApplication.controller');router[_0x8778('0x6')]('/:id',auth['isAuthenticated'](),controller[_0x8778('0x7')]);router[_0x8778('0x8')](_0x8778('0x9'),auth[_0x8778('0xa')](),controller[_0x8778('0xb')]);router[_0x8778('0xc')](_0x8778('0x9'),auth[_0x8778('0xa')](),controller['destroy']);module[_0x8778('0xd')]=router;