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