79b0d22b1783637779776baeabcaf013ad30ca03
[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 _0x2068=['isAuthenticated','describe','/:id','show','post','tracked','whatsapp','whatsappmessage:create','create','/:id/status','status','put','accept','/:id/reject','delete','destroy','exports','multer','util','connect-timeout','Router','fs-extra','../../components/auth/service','../../components/interaction/service','get'];(function(_0x1d85fc,_0x2857d7){var _0x26786f=function(_0x31b0af){while(--_0x31b0af){_0x1d85fc['push'](_0x1d85fc['shift']());}};_0x26786f(++_0x2857d7);}(_0x2068,0x1a1));var _0x8206=function(_0x413970,_0x11edf5){_0x413970=_0x413970-0x0;var _0x1f8282=_0x2068[_0x413970];return _0x1f8282;};'use strict';var multer=require(_0x8206('0x0'));var util=require(_0x8206('0x1'));var path=require('path');var timeout=require(_0x8206('0x2'));var express=require('express');var router=express[_0x8206('0x3')]();var fs_extra=require(_0x8206('0x4'));var auth=require(_0x8206('0x5'));var interaction=require(_0x8206('0x6'));var config=require('../../config/environment');var controller=require('./whatsappMessage.controller');router[_0x8206('0x7')]('/',auth[_0x8206('0x8')](),controller['index']);router[_0x8206('0x7')]('/describe',auth['isAuthenticated'](),controller[_0x8206('0x9')]);router[_0x8206('0x7')](_0x8206('0xa'),auth[_0x8206('0x8')](),controller[_0x8206('0xb')]);router[_0x8206('0xc')]('/',auth[_0x8206('0x8')](),interaction[_0x8206('0xd')](_0x8206('0xe'),_0x8206('0xf')),controller[_0x8206('0x10')]);router[_0x8206('0xc')](_0x8206('0x11'),controller[_0x8206('0x12')]);router[_0x8206('0x13')](_0x8206('0xa'),auth[_0x8206('0x8')](),controller['update']);router[_0x8206('0x13')]('/:id/accept',auth['isAuthenticated'](),controller[_0x8206('0x14')]);router['put'](_0x8206('0x15'),auth[_0x8206('0x8')](),controller['reject']);router[_0x8206('0x16')](_0x8206('0xa'),auth[_0x8206('0x8')](),controller[_0x8206('0x17')]);module[_0x8206('0x18')]=router;