Built motion from commit 3c2ce842.|2.6.31
[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 _0xef41=['status','put','update','/:id/accept','accept','/:id/reject','reject','delete','destroy','exports','multer','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','get','isAuthenticated','index','/describe','describe','/:id','show','tracked','whatsappmessage:create','create'];(function(_0x56d9a2,_0x2b2e9f){var _0x181e2e=function(_0x4b01ed){while(--_0x4b01ed){_0x56d9a2['push'](_0x56d9a2['shift']());}};_0x181e2e(++_0x2b2e9f);}(_0xef41,0x192));var _0x1ef4=function(_0xd7b0a4,_0x53c7d3){_0xd7b0a4=_0xd7b0a4-0x0;var _0x184e9e=_0xef41[_0xd7b0a4];return _0x184e9e;};'use strict';var multer=require(_0x1ef4('0x0'));var util=require('util');var path=require(_0x1ef4('0x1'));var timeout=require(_0x1ef4('0x2'));var express=require(_0x1ef4('0x3'));var router=express[_0x1ef4('0x4')]();var fs_extra=require(_0x1ef4('0x5'));var auth=require(_0x1ef4('0x6'));var interaction=require(_0x1ef4('0x7'));var config=require('../../config/environment');var controller=require('./whatsappMessage.controller');router[_0x1ef4('0x8')]('/',auth[_0x1ef4('0x9')](),controller[_0x1ef4('0xa')]);router[_0x1ef4('0x8')](_0x1ef4('0xb'),auth[_0x1ef4('0x9')](),controller[_0x1ef4('0xc')]);router[_0x1ef4('0x8')](_0x1ef4('0xd'),auth[_0x1ef4('0x9')](),controller[_0x1ef4('0xe')]);router['post']('/',auth['isAuthenticated'](),interaction[_0x1ef4('0xf')]('whatsapp',_0x1ef4('0x10')),controller[_0x1ef4('0x11')]);router['post']('/:id/status',controller[_0x1ef4('0x12')]);router[_0x1ef4('0x13')](_0x1ef4('0xd'),auth[_0x1ef4('0x9')](),controller[_0x1ef4('0x14')]);router[_0x1ef4('0x13')](_0x1ef4('0x15'),auth['isAuthenticated'](),controller[_0x1ef4('0x16')]);router['put'](_0x1ef4('0x17'),auth[_0x1ef4('0x9')](),controller[_0x1ef4('0x18')]);router[_0x1ef4('0x19')](_0x1ef4('0xd'),auth[_0x1ef4('0x9')](),controller[_0x1ef4('0x1a')]);module[_0x1ef4('0x1b')]=router;