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