Built motion from commit 616d3211.|2.6.4
[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 _0xb0f9=['./chatApplication.controller','get','isAuthenticated','show','put','/:id','exports','multer','util','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment'];(function(_0x453ec4,_0x1850fb){var _0x41f286=function(_0x8a9c7f){while(--_0x8a9c7f){_0x453ec4['push'](_0x453ec4['shift']());}};_0x41f286(++_0x1850fb);}(_0xb0f9,0x167));var _0x9b0f=function(_0x251b33,_0x4bb399){_0x251b33=_0x251b33-0x0;var _0x5e5862=_0xb0f9[_0x251b33];return _0x5e5862;};'use strict';var multer=require(_0x9b0f('0x0'));var util=require(_0x9b0f('0x1'));var path=require('path');var timeout=require(_0x9b0f('0x2'));var express=require(_0x9b0f('0x3'));var router=express[_0x9b0f('0x4')]();var fs_extra=require(_0x9b0f('0x5'));var auth=require(_0x9b0f('0x6'));var interaction=require(_0x9b0f('0x7'));var config=require(_0x9b0f('0x8'));var controller=require(_0x9b0f('0x9'));router[_0x9b0f('0xa')]('/:id',auth[_0x9b0f('0xb')](),controller[_0x9b0f('0xc')]);router[_0x9b0f('0xd')](_0x9b0f('0xe'),auth[_0x9b0f('0xb')](),controller['update']);router['delete'](_0x9b0f('0xe'),auth[_0x9b0f('0xb')](),controller['destroy']);module[_0x9b0f('0xf')]=router;