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