a5846795a0fe21fc920867ed07068f9729ce0b3e
[motion2.git] / server / api / whatsappMessage / 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 _0x6a01=['/:id','show','post','tracked','whatsapp','whatsappmessage:create','create','/:id/status','status','put','update','reject','delete','destroy','exports','multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','./whatsappMessage.controller','get','isAuthenticated'];(function(_0xf7f967,_0x1dbb69){var _0x70d7f8=function(_0x5d6cca){while(--_0x5d6cca){_0xf7f967['push'](_0xf7f967['shift']());}};_0x70d7f8(++_0x1dbb69);}(_0x6a01,0x1c9));var _0x16a0=function(_0x409682,_0x370090){_0x409682=_0x409682-0x0;var _0x1ee901=_0x6a01[_0x409682];return _0x1ee901;};'use strict';var multer=require(_0x16a0('0x0'));var util=require(_0x16a0('0x1'));var path=require(_0x16a0('0x2'));var timeout=require(_0x16a0('0x3'));var express=require(_0x16a0('0x4'));var router=express[_0x16a0('0x5')]();var auth=require(_0x16a0('0x6'));var interaction=require(_0x16a0('0x7'));var config=require('../../config/environment');var controller=require(_0x16a0('0x8'));router['get']('/',auth['isAuthenticated'](),controller['index']);router[_0x16a0('0x9')]('/describe',auth[_0x16a0('0xa')](),controller['describe']);router[_0x16a0('0x9')](_0x16a0('0xb'),auth['isAuthenticated'](),controller[_0x16a0('0xc')]);router[_0x16a0('0xd')]('/',auth[_0x16a0('0xa')](),interaction[_0x16a0('0xe')](_0x16a0('0xf'),_0x16a0('0x10')),controller[_0x16a0('0x11')]);router[_0x16a0('0xd')](_0x16a0('0x12'),controller[_0x16a0('0x13')]);router[_0x16a0('0x14')](_0x16a0('0xb'),auth[_0x16a0('0xa')](),controller[_0x16a0('0x15')]);router[_0x16a0('0x14')]('/:id/accept',auth[_0x16a0('0xa')](),controller['accept']);router[_0x16a0('0x14')]('/:id/reject',auth[_0x16a0('0xa')](),controller[_0x16a0('0x16')]);router[_0x16a0('0x17')](_0x16a0('0xb'),auth['isAuthenticated'](),controller[_0x16a0('0x18')]);module[_0x16a0('0x19')]=router;