0c15b834db70d244b4690a17093dd51b78ebdf4c
[motion2.git] / server / api / whatsappInteraction / 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 _0x8864=['/describe','/:id','show','/:id/messages','getMessages','/:id/download','post','create','addMessage','/:id/tags','tracked','whatsapp','whatsappinteraction:addtags','addTags','put','whatsappinteraction:update','update','delete','destroy','exports','multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','isAuthenticated','index','get'];(function(_0x3f061d,_0x344ae4){var _0x27d093=function(_0x160a0c){while(--_0x160a0c){_0x3f061d['push'](_0x3f061d['shift']());}};_0x27d093(++_0x344ae4);}(_0x8864,0x169));var _0x4886=function(_0x23b612,_0x440ea6){_0x23b612=_0x23b612-0x0;var _0x104bcb=_0x8864[_0x23b612];return _0x104bcb;};'use strict';var multer=require(_0x4886('0x0'));var util=require(_0x4886('0x1'));var path=require(_0x4886('0x2'));var timeout=require(_0x4886('0x3'));var express=require(_0x4886('0x4'));var router=express[_0x4886('0x5')]();var auth=require(_0x4886('0x6'));var interaction=require(_0x4886('0x7'));var config=require('../../config/environment');var controller=require('./whatsappInteraction.controller');router['get']('/',auth[_0x4886('0x8')](),controller[_0x4886('0x9')]);router[_0x4886('0xa')](_0x4886('0xb'),auth[_0x4886('0x8')](),controller['describe']);router[_0x4886('0xa')](_0x4886('0xc'),auth[_0x4886('0x8')](),controller[_0x4886('0xd')]);router['get'](_0x4886('0xe'),auth[_0x4886('0x8')](),controller[_0x4886('0xf')]);router[_0x4886('0xa')](_0x4886('0x10'),auth[_0x4886('0x8')](),controller['download']);router[_0x4886('0x11')]('/',auth[_0x4886('0x8')](),controller[_0x4886('0x12')]);router[_0x4886('0x11')](_0x4886('0xe'),auth[_0x4886('0x8')](),controller[_0x4886('0x13')]);router[_0x4886('0x11')](_0x4886('0x14'),auth['isAuthenticated'](),interaction[_0x4886('0x15')](_0x4886('0x16'),_0x4886('0x17')),controller[_0x4886('0x18')]);router[_0x4886('0x19')](_0x4886('0xc'),auth[_0x4886('0x8')](),interaction[_0x4886('0x15')]('whatsapp',_0x4886('0x1a')),controller[_0x4886('0x1b')]);router[_0x4886('0x1c')](_0x4886('0xc'),auth[_0x4886('0x8')](),interaction[_0x4886('0x15')]('whatsapp','whatsappinteraction:destroy'),controller[_0x4886('0x1d')]);router[_0x4886('0x1c')]('/:id/tags',auth['isAuthenticated'](),controller['removeTags']);module[_0x4886('0x1e')]=router;