90d5dcc33b4409318067c8dee1630c8ac847bd3e
[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 _0x8fc1=['../../components/auth/service','../../components/interaction/service','./whatsappMessage.controller','get','isAuthenticated','/describe','show','post','tracked','whatsappmessage:create','create','/:id/status','status','put','/:id/accept','accept','/:id/reject','delete','/:id','destroy','exports','util','path','connect-timeout','Router','fs-extra'];(function(_0x4bbeea,_0xdd2247){var _0x2e1496=function(_0x544577){while(--_0x544577){_0x4bbeea['push'](_0x4bbeea['shift']());}};_0x2e1496(++_0xdd2247);}(_0x8fc1,0x119));var _0x18fc=function(_0x16aba7,_0x1193c6){_0x16aba7=_0x16aba7-0x0;var _0x34b176=_0x8fc1[_0x16aba7];return _0x34b176;};'use strict';var multer=require('multer');var util=require(_0x18fc('0x0'));var path=require(_0x18fc('0x1'));var timeout=require(_0x18fc('0x2'));var express=require('express');var router=express[_0x18fc('0x3')]();var fs_extra=require(_0x18fc('0x4'));var auth=require(_0x18fc('0x5'));var interaction=require(_0x18fc('0x6'));var config=require('../../config/environment');var controller=require(_0x18fc('0x7'));router[_0x18fc('0x8')]('/',auth[_0x18fc('0x9')](),controller['index']);router[_0x18fc('0x8')](_0x18fc('0xa'),auth[_0x18fc('0x9')](),controller['describe']);router[_0x18fc('0x8')]('/:id',auth[_0x18fc('0x9')](),controller[_0x18fc('0xb')]);router[_0x18fc('0xc')]('/',auth[_0x18fc('0x9')](),interaction[_0x18fc('0xd')]('whatsapp',_0x18fc('0xe')),controller[_0x18fc('0xf')]);router[_0x18fc('0xc')](_0x18fc('0x10'),controller[_0x18fc('0x11')]);router['put']('/:id',auth[_0x18fc('0x9')](),controller['update']);router[_0x18fc('0x12')](_0x18fc('0x13'),auth[_0x18fc('0x9')](),controller[_0x18fc('0x14')]);router['put'](_0x18fc('0x15'),auth['isAuthenticated'](),controller['reject']);router[_0x18fc('0x16')](_0x18fc('0x17'),auth[_0x18fc('0x9')](),controller[_0x18fc('0x18')]);module[_0x18fc('0x19')]=router;