Built motion from commit c738b9ac.|2.6.25
[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 _0x569f=['path','connect-timeout','express','fs-extra','../../components/auth/service','../../components/interaction/service','./chatMessage.controller','get','isAuthenticated','index','/describe','describe','/:id','show','post','tracked','chat','chatmessage:create','create','put','update','/:id/accept','accept','/:id/reject','reject','delete','destroy','exports','util'];(function(_0x1b4b23,_0x5dd6d6){var _0x2a325b=function(_0x175462){while(--_0x175462){_0x1b4b23['push'](_0x1b4b23['shift']());}};_0x2a325b(++_0x5dd6d6);}(_0x569f,0x1ec));var _0xf569=function(_0xea3649,_0x557e6a){_0xea3649=_0xea3649-0x0;var _0x5e7d67=_0x569f[_0xea3649];return _0x5e7d67;};'use strict';var multer=require('multer');var util=require(_0xf569('0x0'));var path=require(_0xf569('0x1'));var timeout=require(_0xf569('0x2'));var express=require(_0xf569('0x3'));var router=express['Router']();var fs_extra=require(_0xf569('0x4'));var auth=require(_0xf569('0x5'));var interaction=require(_0xf569('0x6'));var config=require('../../config/environment');var controller=require(_0xf569('0x7'));router[_0xf569('0x8')]('/',auth[_0xf569('0x9')](),controller[_0xf569('0xa')]);router[_0xf569('0x8')](_0xf569('0xb'),auth[_0xf569('0x9')](),controller[_0xf569('0xc')]);router[_0xf569('0x8')](_0xf569('0xd'),auth[_0xf569('0x9')](),controller[_0xf569('0xe')]);router[_0xf569('0xf')]('/',auth[_0xf569('0x9')](),interaction[_0xf569('0x10')](_0xf569('0x11'),_0xf569('0x12')),controller[_0xf569('0x13')]);router[_0xf569('0x14')](_0xf569('0xd'),controller[_0xf569('0x15')]);router[_0xf569('0x14')](_0xf569('0x16'),auth['isAuthenticated'](),controller[_0xf569('0x17')]);router['put'](_0xf569('0x18'),auth[_0xf569('0x9')](),controller[_0xf569('0x19')]);router[_0xf569('0x1a')]('/:id',auth[_0xf569('0x9')](),controller[_0xf569('0x1b')]);module[_0xf569('0x1c')]=router;