Built motion from commit 97f2f211.|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 _0x9d2f=['util','path','connect-timeout','express','Router','fs-extra','../../components/interaction/service','../../config/environment','./chatApplication.controller','get','/:id','isAuthenticated','show','delete'];(function(_0x228eef,_0x229cb6){var _0x2aa014=function(_0x45330d){while(--_0x45330d){_0x228eef['push'](_0x228eef['shift']());}};_0x2aa014(++_0x229cb6);}(_0x9d2f,0x16c));var _0xf9d2=function(_0x88cd7b,_0x4c884c){_0x88cd7b=_0x88cd7b-0x0;var _0x56fcc8=_0x9d2f[_0x88cd7b];return _0x56fcc8;};'use strict';var multer=require('multer');var util=require(_0xf9d2('0x0'));var path=require(_0xf9d2('0x1'));var timeout=require(_0xf9d2('0x2'));var express=require(_0xf9d2('0x3'));var router=express[_0xf9d2('0x4')]();var fs_extra=require(_0xf9d2('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0xf9d2('0x6'));var config=require(_0xf9d2('0x7'));var controller=require(_0xf9d2('0x8'));router[_0xf9d2('0x9')](_0xf9d2('0xa'),auth[_0xf9d2('0xb')](),controller[_0xf9d2('0xc')]);router['put'](_0xf9d2('0xa'),auth[_0xf9d2('0xb')](),controller['update']);router[_0xf9d2('0xd')](_0xf9d2('0xa'),auth[_0xf9d2('0xb')](),controller['destroy']);module['exports']=router;