8d6352db09781b4860810776c8d903ab48fcb89d
[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 _0x0a75=['isAuthenticated','/:id','show','post','whatsapp','whatsappmessage:create','create','status','put','update','/:id/accept','accept','/:id/reject','reject','delete','exports','multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./whatsappMessage.controller','get','index','/describe'];(function(_0x41af4f,_0x3d1f88){var _0x1922bc=function(_0x5ed28d){while(--_0x5ed28d){_0x41af4f['push'](_0x41af4f['shift']());}};_0x1922bc(++_0x3d1f88);}(_0x0a75,0x16c));var _0x50a7=function(_0x5784fb,_0xea597){_0x5784fb=_0x5784fb-0x0;var _0x9c0938=_0x0a75[_0x5784fb];return _0x9c0938;};'use strict';var multer=require(_0x50a7('0x0'));var util=require(_0x50a7('0x1'));var path=require(_0x50a7('0x2'));var timeout=require(_0x50a7('0x3'));var express=require(_0x50a7('0x4'));var router=express[_0x50a7('0x5')]();var fs_extra=require('fs-extra');var auth=require(_0x50a7('0x6'));var interaction=require(_0x50a7('0x7'));var config=require(_0x50a7('0x8'));var controller=require(_0x50a7('0x9'));router[_0x50a7('0xa')]('/',auth['isAuthenticated'](),controller[_0x50a7('0xb')]);router['get'](_0x50a7('0xc'),auth[_0x50a7('0xd')](),controller['describe']);router[_0x50a7('0xa')](_0x50a7('0xe'),auth[_0x50a7('0xd')](),controller[_0x50a7('0xf')]);router[_0x50a7('0x10')]('/',auth[_0x50a7('0xd')](),interaction['tracked'](_0x50a7('0x11'),_0x50a7('0x12')),controller[_0x50a7('0x13')]);router[_0x50a7('0x10')]('/:id/status',controller[_0x50a7('0x14')]);router[_0x50a7('0x15')](_0x50a7('0xe'),auth[_0x50a7('0xd')](),controller[_0x50a7('0x16')]);router[_0x50a7('0x15')](_0x50a7('0x17'),auth['isAuthenticated'](),controller[_0x50a7('0x18')]);router[_0x50a7('0x15')](_0x50a7('0x19'),auth['isAuthenticated'](),controller[_0x50a7('0x1a')]);router[_0x50a7('0x1b')](_0x50a7('0xe'),auth[_0x50a7('0xd')](),controller['destroy']);module[_0x50a7('0x1c')]=router;