Built motion from commit 449495f6.|2.6.27
[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 _0xf661=['show','put','/:id','update','delete','exports','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../config/environment','./chatApplication.controller','get','isAuthenticated'];(function(_0x99167b,_0x4bb003){var _0x417386=function(_0x334ec3){while(--_0x334ec3){_0x99167b['push'](_0x99167b['shift']());}};_0x417386(++_0x4bb003);}(_0xf661,0x8e));var _0x1f66=function(_0x4e2897,_0x33a468){_0x4e2897=_0x4e2897-0x0;var _0x3a21c8=_0xf661[_0x4e2897];return _0x3a21c8;};'use strict';var multer=require('multer');var util=require(_0x1f66('0x0'));var path=require(_0x1f66('0x1'));var timeout=require(_0x1f66('0x2'));var express=require(_0x1f66('0x3'));var router=express[_0x1f66('0x4')]();var fs_extra=require(_0x1f66('0x5'));var auth=require(_0x1f66('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0x1f66('0x7'));var controller=require(_0x1f66('0x8'));router[_0x1f66('0x9')]('/:id',auth[_0x1f66('0xa')](),controller[_0x1f66('0xb')]);router[_0x1f66('0xc')](_0x1f66('0xd'),auth[_0x1f66('0xa')](),controller[_0x1f66('0xe')]);router[_0x1f66('0xf')](_0x1f66('0xd'),auth[_0x1f66('0xa')](),controller['destroy']);module[_0x1f66('0x10')]=router;