Built motion from commit 3c2ce842.|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 _0x71fd=['get','/:id','isAuthenticated','show','destroy','exports','multer','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment'];(function(_0x378afc,_0x52d1b9){var _0x1b88ff=function(_0x593013){while(--_0x593013){_0x378afc['push'](_0x378afc['shift']());}};_0x1b88ff(++_0x52d1b9);}(_0x71fd,0x76));var _0xd71f=function(_0x1f4acf,_0x4ea06c){_0x1f4acf=_0x1f4acf-0x0;var _0x25ea54=_0x71fd[_0x1f4acf];return _0x25ea54;};'use strict';var multer=require(_0xd71f('0x0'));var util=require('util');var path=require(_0xd71f('0x1'));var timeout=require(_0xd71f('0x2'));var express=require(_0xd71f('0x3'));var router=express[_0xd71f('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0xd71f('0x5'));var interaction=require(_0xd71f('0x6'));var config=require(_0xd71f('0x7'));var controller=require('./chatApplication.controller');router[_0xd71f('0x8')](_0xd71f('0x9'),auth[_0xd71f('0xa')](),controller[_0xd71f('0xb')]);router['put']('/:id',auth['isAuthenticated'](),controller['update']);router['delete']('/:id',auth[_0xd71f('0xa')](),controller[_0xd71f('0xc')]);module[_0xd71f('0xd')]=router;