Built motion from commit (unavailable).|2.0.74
[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 _0xf708=['destroy','exports','multer','path','express','../../components/auth/service','../../components/interaction/service','../../config/environment','./chatApplication.controller','get','/:id','isAuthenticated','show','put','update'];(function(_0x3ab9ee,_0x4a74b8){var _0x82ee88=function(_0x6ccc7e){while(--_0x6ccc7e){_0x3ab9ee['push'](_0x3ab9ee['shift']());}};_0x82ee88(++_0x4a74b8);}(_0xf708,0x1f1));var _0x8f70=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xf708[_0x3dd15e];return _0x231fd0;};'use strict';var multer=require(_0x8f70('0x0'));var util=require('util');var path=require(_0x8f70('0x1'));var express=require(_0x8f70('0x2'));var router=express['Router']();var auth=require(_0x8f70('0x3'));var interaction=require(_0x8f70('0x4'));var config=require(_0x8f70('0x5'));var controller=require(_0x8f70('0x6'));router[_0x8f70('0x7')](_0x8f70('0x8'),auth[_0x8f70('0x9')](),controller[_0x8f70('0xa')]);router[_0x8f70('0xb')](_0x8f70('0x8'),auth['isAuthenticated'](),controller[_0x8f70('0xc')]);router['delete']('/:id',auth[_0x8f70('0x9')](),controller[_0x8f70('0xd')]);module[_0x8f70('0xe')]=router;