Built motion from commit a679711e.|2.6.15
[motion2.git] / server / api / chatMessage / 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 _0x3caf=['fs-extra','../../config/environment','./chatMessage.controller','get','isAuthenticated','/describe','describe','/:id','post','tracked','chat','chatmessage:create','create','update','/:id/accept','accept','put','/:id/reject','delete','destroy','exports','util','path','connect-timeout','express','Router'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x3caf,0x1cf));var _0xf3ca=function(_0x207b87,_0x3266e5){_0x207b87=_0x207b87-0x0;var _0xbc46ff=_0x3caf[_0x207b87];return _0xbc46ff;};'use strict';var multer=require('multer');var util=require(_0xf3ca('0x0'));var path=require(_0xf3ca('0x1'));var timeout=require(_0xf3ca('0x2'));var express=require(_0xf3ca('0x3'));var router=express[_0xf3ca('0x4')]();var fs_extra=require(_0xf3ca('0x5'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0xf3ca('0x6'));var controller=require(_0xf3ca('0x7'));router[_0xf3ca('0x8')]('/',auth[_0xf3ca('0x9')](),controller['index']);router[_0xf3ca('0x8')](_0xf3ca('0xa'),auth['isAuthenticated'](),controller[_0xf3ca('0xb')]);router[_0xf3ca('0x8')](_0xf3ca('0xc'),auth[_0xf3ca('0x9')](),controller['show']);router[_0xf3ca('0xd')]('/',auth[_0xf3ca('0x9')](),interaction[_0xf3ca('0xe')](_0xf3ca('0xf'),_0xf3ca('0x10')),controller[_0xf3ca('0x11')]);router['put'](_0xf3ca('0xc'),controller[_0xf3ca('0x12')]);router['put'](_0xf3ca('0x13'),auth[_0xf3ca('0x9')](),controller[_0xf3ca('0x14')]);router[_0xf3ca('0x15')](_0xf3ca('0x16'),auth[_0xf3ca('0x9')](),controller['reject']);router[_0xf3ca('0x17')]('/:id',auth[_0xf3ca('0x9')](),controller[_0xf3ca('0x18')]);module[_0xf3ca('0x19')]=router;