Built motion from commit ddca4d0d.|2.5.47
[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 _0xe2d0=['path','connect-timeout','Router','fs-extra','get','isAuthenticated','update','delete','/:id','destroy','exports','multer'];(function(_0x4628a1,_0x55ff29){var _0x492347=function(_0x4846a9){while(--_0x4846a9){_0x4628a1['push'](_0x4628a1['shift']());}};_0x492347(++_0x55ff29);}(_0xe2d0,0xef));var _0x0e2d=function(_0xdb0e74,_0x2ab149){_0xdb0e74=_0xdb0e74-0x0;var _0x5280d9=_0xe2d0[_0xdb0e74];return _0x5280d9;};'use strict';var multer=require(_0x0e2d('0x0'));var util=require('util');var path=require(_0x0e2d('0x1'));var timeout=require(_0x0e2d('0x2'));var express=require('express');var router=express[_0x0e2d('0x3')]();var fs_extra=require(_0x0e2d('0x4'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require('./chatApplication.controller');router[_0x0e2d('0x5')]('/:id',auth[_0x0e2d('0x6')](),controller['show']);router['put']('/:id',auth[_0x0e2d('0x6')](),controller[_0x0e2d('0x7')]);router[_0x0e2d('0x8')](_0x0e2d('0x9'),auth[_0x0e2d('0x6')](),controller[_0x0e2d('0xa')]);module[_0x0e2d('0xb')]=router;