c44abe72a450a35adbc0e8e06e45dcaaef16427a
[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 _0x86c1=['../../components/auth/service','../../components/interaction/service','../../config/environment','./chatApplication.controller','get','/:id','put','isAuthenticated','update','delete','destroy','exports','util','connect-timeout','express'];(function(_0xa18241,_0x40ab06){var _0x4f4c84=function(_0x14af01){while(--_0x14af01){_0xa18241['push'](_0xa18241['shift']());}};_0x4f4c84(++_0x40ab06);}(_0x86c1,0xed));var _0x186c=function(_0x4f9344,_0x388634){_0x4f9344=_0x4f9344-0x0;var _0x4f1677=_0x86c1[_0x4f9344];return _0x4f1677;};'use strict';var multer=require('multer');var util=require(_0x186c('0x0'));var path=require('path');var timeout=require(_0x186c('0x1'));var express=require(_0x186c('0x2'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0x186c('0x3'));var interaction=require(_0x186c('0x4'));var config=require(_0x186c('0x5'));var controller=require(_0x186c('0x6'));router[_0x186c('0x7')](_0x186c('0x8'),auth['isAuthenticated'](),controller['show']);router[_0x186c('0x9')](_0x186c('0x8'),auth[_0x186c('0xa')](),controller[_0x186c('0xb')]);router[_0x186c('0xc')](_0x186c('0x8'),auth[_0x186c('0xa')](),controller[_0x186c('0xd')]);module[_0x186c('0xe')]=router;