Built motion from commit 9d1906d1.|2.5.40
[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 _0x7f0a=['put','update','/:id/accept','accept','/:id/reject','reject','delete','destroy','multer','util','path','connect-timeout','express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./chatMessage.controller','get','isAuthenticated','/describe','describe','/:id','post','tracked','chat'];(function(_0x8c8176,_0x5360a1){var _0x4dc47b=function(_0x1a7f65){while(--_0x1a7f65){_0x8c8176['push'](_0x8c8176['shift']());}};_0x4dc47b(++_0x5360a1);}(_0x7f0a,0x1c2));var _0xa7f0=function(_0x334841,_0x2bbc4c){_0x334841=_0x334841-0x0;var _0x5beb4b=_0x7f0a[_0x334841];return _0x5beb4b;};'use strict';var multer=require(_0xa7f0('0x0'));var util=require(_0xa7f0('0x1'));var path=require(_0xa7f0('0x2'));var timeout=require(_0xa7f0('0x3'));var express=require(_0xa7f0('0x4'));var router=express['Router']();var fs_extra=require(_0xa7f0('0x5'));var auth=require(_0xa7f0('0x6'));var interaction=require(_0xa7f0('0x7'));var config=require(_0xa7f0('0x8'));var controller=require(_0xa7f0('0x9'));router[_0xa7f0('0xa')]('/',auth[_0xa7f0('0xb')](),controller['index']);router[_0xa7f0('0xa')](_0xa7f0('0xc'),auth[_0xa7f0('0xb')](),controller[_0xa7f0('0xd')]);router[_0xa7f0('0xa')](_0xa7f0('0xe'),auth[_0xa7f0('0xb')](),controller['show']);router[_0xa7f0('0xf')]('/',auth[_0xa7f0('0xb')](),interaction[_0xa7f0('0x10')](_0xa7f0('0x11'),'chatmessage:create'),controller['create']);router[_0xa7f0('0x12')](_0xa7f0('0xe'),controller[_0xa7f0('0x13')]);router[_0xa7f0('0x12')](_0xa7f0('0x14'),auth[_0xa7f0('0xb')](),controller[_0xa7f0('0x15')]);router[_0xa7f0('0x12')](_0xa7f0('0x16'),auth[_0xa7f0('0xb')](),controller[_0xa7f0('0x17')]);router[_0xa7f0('0x18')](_0xa7f0('0xe'),auth[_0xa7f0('0xb')](),controller[_0xa7f0('0x19')]);module['exports']=router;