8b8af03b22140fb29069d1d67a2a174041978f6a
[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 _0xdb41=['accept','/:id/reject','delete','destroy','exports','util','path','connect-timeout','express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./chatMessage.controller','get','isAuthenticated','index','/describe','describe','/:id','post','tracked','chat','chatmessage:create','create','put','update','/:id/accept'];(function(_0x33dcf7,_0x3d5390){var _0x542d4e=function(_0x281250){while(--_0x281250){_0x33dcf7['push'](_0x33dcf7['shift']());}};_0x542d4e(++_0x3d5390);}(_0xdb41,0x1e1));var _0x1db4=function(_0x5b26cb,_0x527ab0){_0x5b26cb=_0x5b26cb-0x0;var _0x563d12=_0xdb41[_0x5b26cb];return _0x563d12;};'use strict';var multer=require('multer');var util=require(_0x1db4('0x0'));var path=require(_0x1db4('0x1'));var timeout=require(_0x1db4('0x2'));var express=require(_0x1db4('0x3'));var router=express['Router']();var fs_extra=require(_0x1db4('0x4'));var auth=require(_0x1db4('0x5'));var interaction=require(_0x1db4('0x6'));var config=require(_0x1db4('0x7'));var controller=require(_0x1db4('0x8'));router[_0x1db4('0x9')]('/',auth[_0x1db4('0xa')](),controller[_0x1db4('0xb')]);router['get'](_0x1db4('0xc'),auth['isAuthenticated'](),controller[_0x1db4('0xd')]);router[_0x1db4('0x9')](_0x1db4('0xe'),auth['isAuthenticated'](),controller['show']);router[_0x1db4('0xf')]('/',auth[_0x1db4('0xa')](),interaction[_0x1db4('0x10')](_0x1db4('0x11'),_0x1db4('0x12')),controller[_0x1db4('0x13')]);router[_0x1db4('0x14')](_0x1db4('0xe'),controller[_0x1db4('0x15')]);router[_0x1db4('0x14')](_0x1db4('0x16'),auth['isAuthenticated'](),controller[_0x1db4('0x17')]);router[_0x1db4('0x14')](_0x1db4('0x18'),auth[_0x1db4('0xa')](),controller['reject']);router[_0x1db4('0x19')](_0x1db4('0xe'),auth[_0x1db4('0xa')](),controller[_0x1db4('0x1a')]);module[_0x1db4('0x1b')]=router;