Built motion from commit f7863d46.|2.5.41
[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 _0x45f2=['Router','fs-extra','../../components/auth/service','../../components/interaction/service','get','/:id','isAuthenticated','show','put','update','exports','util','path','connect-timeout','express'];(function(_0x58b51e,_0x58b6e9){var _0x299b51=function(_0x240627){while(--_0x240627){_0x58b51e['push'](_0x58b51e['shift']());}};_0x299b51(++_0x58b6e9);}(_0x45f2,0x1a0));var _0x245f=function(_0x52d719,_0x39a927){_0x52d719=_0x52d719-0x0;var _0x6a0816=_0x45f2[_0x52d719];return _0x6a0816;};'use strict';var multer=require('multer');var util=require(_0x245f('0x0'));var path=require(_0x245f('0x1'));var timeout=require(_0x245f('0x2'));var express=require(_0x245f('0x3'));var router=express[_0x245f('0x4')]();var fs_extra=require(_0x245f('0x5'));var auth=require(_0x245f('0x6'));var interaction=require(_0x245f('0x7'));var config=require('../../config/environment');var controller=require('./chatApplication.controller');router[_0x245f('0x8')](_0x245f('0x9'),auth[_0x245f('0xa')](),controller[_0x245f('0xb')]);router[_0x245f('0xc')](_0x245f('0x9'),auth[_0x245f('0xa')](),controller[_0x245f('0xd')]);router['delete'](_0x245f('0x9'),auth[_0x245f('0xa')](),controller['destroy']);module[_0x245f('0xe')]=router;