Built motion from commit (unavailable).|2.4.21
[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 _0xf027=['multer','path','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/describe','describe','/:id','show','post','chatmessage:create','create','put','update','/:id/accept','accept','/:id/reject','reject','delete','exports'];(function(_0x53104c,_0x284bf8){var _0x3f4bf2=function(_0x4593bf){while(--_0x4593bf){_0x53104c['push'](_0x53104c['shift']());}};_0x3f4bf2(++_0x284bf8);}(_0xf027,0x12c));var _0x7f02=function(_0x3ab51d,_0x2fa01d){_0x3ab51d=_0x3ab51d-0x0;var _0x29a04e=_0xf027[_0x3ab51d];return _0x29a04e;};'use strict';var multer=require(_0x7f02('0x0'));var util=require('util');var path=require(_0x7f02('0x1'));var timeout=require('connect-timeout');var express=require(_0x7f02('0x2'));var router=express[_0x7f02('0x3')]();var auth=require(_0x7f02('0x4'));var interaction=require(_0x7f02('0x5'));var config=require(_0x7f02('0x6'));var controller=require('./chatMessage.controller');router[_0x7f02('0x7')]('/',auth[_0x7f02('0x8')](),controller[_0x7f02('0x9')]);router[_0x7f02('0x7')](_0x7f02('0xa'),auth[_0x7f02('0x8')](),controller[_0x7f02('0xb')]);router[_0x7f02('0x7')](_0x7f02('0xc'),auth[_0x7f02('0x8')](),controller[_0x7f02('0xd')]);router[_0x7f02('0xe')]('/',auth['isAuthenticated'](),interaction['tracked']('chat',_0x7f02('0xf')),controller[_0x7f02('0x10')]);router[_0x7f02('0x11')](_0x7f02('0xc'),controller[_0x7f02('0x12')]);router['put'](_0x7f02('0x13'),auth[_0x7f02('0x8')](),controller[_0x7f02('0x14')]);router[_0x7f02('0x11')](_0x7f02('0x15'),auth[_0x7f02('0x8')](),controller[_0x7f02('0x16')]);router[_0x7f02('0x17')](_0x7f02('0xc'),auth[_0x7f02('0x8')](),controller['destroy']);module[_0x7f02('0x18')]=router;