Built motion from commit 08fb8613.|2.6.31
[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 _0x1aa3=['path','connect-timeout','express','fs-extra','../../config/environment','/:id','isAuthenticated','show','delete','exports','multer','util'];(function(_0x3428a0,_0x323565){var _0xc3c498=function(_0x3171ee){while(--_0x3171ee){_0x3428a0['push'](_0x3428a0['shift']());}};_0xc3c498(++_0x323565);}(_0x1aa3,0x1d2));var _0x31aa=function(_0x39204a,_0x55286f){_0x39204a=_0x39204a-0x0;var _0x129eef=_0x1aa3[_0x39204a];return _0x129eef;};'use strict';var multer=require(_0x31aa('0x0'));var util=require(_0x31aa('0x1'));var path=require(_0x31aa('0x2'));var timeout=require(_0x31aa('0x3'));var express=require(_0x31aa('0x4'));var router=express['Router']();var fs_extra=require(_0x31aa('0x5'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x31aa('0x6'));var controller=require('./chatApplication.controller');router['get'](_0x31aa('0x7'),auth[_0x31aa('0x8')](),controller[_0x31aa('0x9')]);router['put']('/:id',auth['isAuthenticated'](),controller['update']);router[_0x31aa('0xa')](_0x31aa('0x7'),auth[_0x31aa('0x8')](),controller['destroy']);module[_0x31aa('0xb')]=router;