d9c8690daa14d7c90e01c6c684c06e3dda301ea3
[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 _0x3f50=['../../components/interaction/service','../../config/environment','./chatApplication.controller','get','/:id','isAuthenticated','show','delete','destroy','exports','multer','util','path','connect-timeout','express','Router'];(function(_0x32674e,_0x4f0d04){var _0x2032b8=function(_0x591bf2){while(--_0x591bf2){_0x32674e['push'](_0x32674e['shift']());}};_0x2032b8(++_0x4f0d04);}(_0x3f50,0x10a));var _0x03f5=function(_0x5de96a,_0x3ee340){_0x5de96a=_0x5de96a-0x0;var _0x53ab51=_0x3f50[_0x5de96a];return _0x53ab51;};'use strict';var multer=require(_0x03f5('0x0'));var util=require(_0x03f5('0x1'));var path=require(_0x03f5('0x2'));var timeout=require(_0x03f5('0x3'));var express=require(_0x03f5('0x4'));var router=express[_0x03f5('0x5')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0x03f5('0x6'));var config=require(_0x03f5('0x7'));var controller=require(_0x03f5('0x8'));router[_0x03f5('0x9')](_0x03f5('0xa'),auth[_0x03f5('0xb')](),controller[_0x03f5('0xc')]);router['put']('/:id',auth[_0x03f5('0xb')](),controller['update']);router[_0x03f5('0xd')](_0x03f5('0xa'),auth[_0x03f5('0xb')](),controller[_0x03f5('0xe')]);module[_0x03f5('0xf')]=router;