Built motion from commit 47436d59.|2.6.7
[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 _0xf50f=['connect-timeout','express','Router','fs-extra','../../components/auth/service','./chatMessage.controller','get','isAuthenticated','index','/:id','show','post','tracked','chatmessage:create','put','update','/:id/reject','reject','delete','destroy','multer','path'];(function(_0x485952,_0x8fb6b1){var _0x11b491=function(_0x5f4d7f){while(--_0x5f4d7f){_0x485952['push'](_0x485952['shift']());}};_0x11b491(++_0x8fb6b1);}(_0xf50f,0x15e));var _0xff50=function(_0x2d4a77,_0x47dbd1){_0x2d4a77=_0x2d4a77-0x0;var _0x17ecbb=_0xf50f[_0x2d4a77];return _0x17ecbb;};'use strict';var multer=require(_0xff50('0x0'));var util=require('util');var path=require(_0xff50('0x1'));var timeout=require(_0xff50('0x2'));var express=require(_0xff50('0x3'));var router=express[_0xff50('0x4')]();var fs_extra=require(_0xff50('0x5'));var auth=require(_0xff50('0x6'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0xff50('0x7'));router[_0xff50('0x8')]('/',auth[_0xff50('0x9')](),controller[_0xff50('0xa')]);router[_0xff50('0x8')]('/describe',auth[_0xff50('0x9')](),controller['describe']);router[_0xff50('0x8')](_0xff50('0xb'),auth[_0xff50('0x9')](),controller[_0xff50('0xc')]);router[_0xff50('0xd')]('/',auth[_0xff50('0x9')](),interaction[_0xff50('0xe')]('chat',_0xff50('0xf')),controller['create']);router[_0xff50('0x10')](_0xff50('0xb'),controller[_0xff50('0x11')]);router['put']('/:id/accept',auth[_0xff50('0x9')](),controller['accept']);router[_0xff50('0x10')](_0xff50('0x12'),auth[_0xff50('0x9')](),controller[_0xff50('0x13')]);router[_0xff50('0x14')]('/:id',auth[_0xff50('0x9')](),controller[_0xff50('0x15')]);module['exports']=router;