f6fae4594477966bd904d1e46f132444560faa68
[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 _0x3d4b=['util','connect-timeout','express','Router','../../components/auth/service','get','/:id','show','put','update','destroy','exports','multer'];(function(_0x167cc1,_0x56ef5a){var _0x10bc4b=function(_0xd6a255){while(--_0xd6a255){_0x167cc1['push'](_0x167cc1['shift']());}};_0x10bc4b(++_0x56ef5a);}(_0x3d4b,0x1ac));var _0xb3d4=function(_0x57dc5f,_0x1baa29){_0x57dc5f=_0x57dc5f-0x0;var _0x23a288=_0x3d4b[_0x57dc5f];return _0x23a288;};'use strict';var multer=require(_0xb3d4('0x0'));var util=require(_0xb3d4('0x1'));var path=require('path');var timeout=require(_0xb3d4('0x2'));var express=require(_0xb3d4('0x3'));var router=express[_0xb3d4('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0xb3d4('0x5'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require('./chatApplication.controller');router[_0xb3d4('0x6')](_0xb3d4('0x7'),auth['isAuthenticated'](),controller[_0xb3d4('0x8')]);router[_0xb3d4('0x9')](_0xb3d4('0x7'),auth['isAuthenticated'](),controller[_0xb3d4('0xa')]);router['delete'](_0xb3d4('0x7'),auth['isAuthenticated'](),controller[_0xb3d4('0xb')]);module[_0xb3d4('0xc')]=router;