Built motion from commit 3d6333b4.|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 _0x7ce7=['show','delete','destroy','util','connect-timeout','Router','fs-extra','../../config/environment','./chatApplication.controller','/:id','isAuthenticated'];(function(_0x4b647d,_0x4aec68){var _0xdaaf6=function(_0x3557c7){while(--_0x3557c7){_0x4b647d['push'](_0x4b647d['shift']());}};_0xdaaf6(++_0x4aec68);}(_0x7ce7,0x1dc));var _0x77ce=function(_0x3f12f7,_0x5e618d){_0x3f12f7=_0x3f12f7-0x0;var _0x46c0c5=_0x7ce7[_0x3f12f7];return _0x46c0c5;};'use strict';var multer=require('multer');var util=require(_0x77ce('0x0'));var path=require('path');var timeout=require(_0x77ce('0x1'));var express=require('express');var router=express[_0x77ce('0x2')]();var fs_extra=require(_0x77ce('0x3'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x77ce('0x4'));var controller=require(_0x77ce('0x5'));router['get'](_0x77ce('0x6'),auth[_0x77ce('0x7')](),controller[_0x77ce('0x8')]);router['put'](_0x77ce('0x6'),auth[_0x77ce('0x7')](),controller['update']);router[_0x77ce('0x9')](_0x77ce('0x6'),auth[_0x77ce('0x7')](),controller[_0x77ce('0xa')]);module['exports']=router;