77798fa17fd0aadf3d3183a4eb6ce32122c24e16
[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 _0x267e=['../../config/environment','./whatsappMessage.controller','get','index','/describe','describe','/:id','isAuthenticated','show','post','tracked','whatsapp','create','/:id/status','status','put','update','accept','/:id/reject','destroy','exports','util','path','fs-extra'];(function(_0x409353,_0xe9f04d){var _0x4f4b59=function(_0x64b587){while(--_0x64b587){_0x409353['push'](_0x409353['shift']());}};_0x4f4b59(++_0xe9f04d);}(_0x267e,0x8d));var _0xe267=function(_0x89dcf5,_0x3f10ad){_0x89dcf5=_0x89dcf5-0x0;var _0xcaaa63=_0x267e[_0x89dcf5];return _0xcaaa63;};'use strict';var multer=require('multer');var util=require(_0xe267('0x0'));var path=require(_0xe267('0x1'));var timeout=require('connect-timeout');var express=require('express');var router=express['Router']();var fs_extra=require(_0xe267('0x2'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0xe267('0x3'));var controller=require(_0xe267('0x4'));router[_0xe267('0x5')]('/',auth['isAuthenticated'](),controller[_0xe267('0x6')]);router['get'](_0xe267('0x7'),auth['isAuthenticated'](),controller[_0xe267('0x8')]);router[_0xe267('0x5')](_0xe267('0x9'),auth[_0xe267('0xa')](),controller[_0xe267('0xb')]);router[_0xe267('0xc')]('/',auth[_0xe267('0xa')](),interaction[_0xe267('0xd')](_0xe267('0xe'),'whatsappmessage:create'),controller[_0xe267('0xf')]);router[_0xe267('0xc')](_0xe267('0x10'),controller[_0xe267('0x11')]);router[_0xe267('0x12')]('/:id',auth[_0xe267('0xa')](),controller[_0xe267('0x13')]);router[_0xe267('0x12')]('/:id/accept',auth[_0xe267('0xa')](),controller[_0xe267('0x14')]);router[_0xe267('0x12')](_0xe267('0x15'),auth['isAuthenticated'](),controller['reject']);router['delete'](_0xe267('0x9'),auth[_0xe267('0xa')](),controller[_0xe267('0x16')]);module[_0xe267('0x17')]=router;