3599f9d94fc649ea5cb25251b73aeb60faa91279
[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 _0x98cc=['/:id','show','post','tracked','chat','chatmessage:create','create','update','put','/:id/accept','/:id/reject','reject','destroy','exports','multer','util','path','connect-timeout','express','fs-extra','../../components/auth/service','../../config/environment','get','isAuthenticated','index','describe'];(function(_0x584ef2,_0x1848f9){var _0x1063c6=function(_0x4cd2f7){while(--_0x4cd2f7){_0x584ef2['push'](_0x584ef2['shift']());}};_0x1063c6(++_0x1848f9);}(_0x98cc,0x194));var _0xc98c=function(_0x571852,_0x34ae1f){_0x571852=_0x571852-0x0;var _0x1ec365=_0x98cc[_0x571852];return _0x1ec365;};'use strict';var multer=require(_0xc98c('0x0'));var util=require(_0xc98c('0x1'));var path=require(_0xc98c('0x2'));var timeout=require(_0xc98c('0x3'));var express=require(_0xc98c('0x4'));var router=express['Router']();var fs_extra=require(_0xc98c('0x5'));var auth=require(_0xc98c('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0xc98c('0x7'));var controller=require('./chatMessage.controller');router[_0xc98c('0x8')]('/',auth[_0xc98c('0x9')](),controller[_0xc98c('0xa')]);router[_0xc98c('0x8')]('/describe',auth[_0xc98c('0x9')](),controller[_0xc98c('0xb')]);router[_0xc98c('0x8')](_0xc98c('0xc'),auth[_0xc98c('0x9')](),controller[_0xc98c('0xd')]);router[_0xc98c('0xe')]('/',auth[_0xc98c('0x9')](),interaction[_0xc98c('0xf')](_0xc98c('0x10'),_0xc98c('0x11')),controller[_0xc98c('0x12')]);router['put'](_0xc98c('0xc'),controller[_0xc98c('0x13')]);router[_0xc98c('0x14')](_0xc98c('0x15'),auth[_0xc98c('0x9')](),controller['accept']);router['put'](_0xc98c('0x16'),auth[_0xc98c('0x9')](),controller[_0xc98c('0x17')]);router['delete'](_0xc98c('0xc'),auth[_0xc98c('0x9')](),controller[_0xc98c('0x18')]);module[_0xc98c('0x19')]=router;