Built motion from commit 00bf23f6.|2.6.16
[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 _0x570d=['Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./chatApplication.controller','/:id','show','put','isAuthenticated','update','delete','exports','multer','util','path','connect-timeout','express'];(function(_0x2fb624,_0x1e7832){var _0x18e5d0=function(_0x544ef3){while(--_0x544ef3){_0x2fb624['push'](_0x2fb624['shift']());}};_0x18e5d0(++_0x1e7832);}(_0x570d,0xfa));var _0xd570=function(_0x241ef5,_0x17f16a){_0x241ef5=_0x241ef5-0x0;var _0x2e72e7=_0x570d[_0x241ef5];return _0x2e72e7;};'use strict';var multer=require(_0xd570('0x0'));var util=require(_0xd570('0x1'));var path=require(_0xd570('0x2'));var timeout=require(_0xd570('0x3'));var express=require(_0xd570('0x4'));var router=express[_0xd570('0x5')]();var fs_extra=require('fs-extra');var auth=require(_0xd570('0x6'));var interaction=require(_0xd570('0x7'));var config=require(_0xd570('0x8'));var controller=require(_0xd570('0x9'));router['get'](_0xd570('0xa'),auth['isAuthenticated'](),controller[_0xd570('0xb')]);router[_0xd570('0xc')](_0xd570('0xa'),auth[_0xd570('0xd')](),controller[_0xd570('0xe')]);router[_0xd570('0xf')](_0xd570('0xa'),auth[_0xd570('0xd')](),controller['destroy']);module[_0xd570('0x10')]=router;