e784cff13819ee7c81ce9f9c88e5513ea05d4ca5
[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 _0x168b=['index','get','describe','/:id','show','/:id/messages','getMessages','/:id/download','post','addMessage','/:id/tags','tracked','whatsappinteraction:addtags','addTags','put','whatsapp','whatsappinteraction:update','update','whatsappinteraction:destroy','destroy','delete','removeTags','exports','multer','util','path','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./whatsappInteraction.controller','isAuthenticated'];(function(_0xbc4659,_0x578fba){var _0x5831f9=function(_0x5eb0eb){while(--_0x5eb0eb){_0xbc4659['push'](_0xbc4659['shift']());}};_0x5831f9(++_0x578fba);}(_0x168b,0x9b));var _0xb168=function(_0x1df443,_0x2860fe){_0x1df443=_0x1df443-0x0;var _0x3ee434=_0x168b[_0x1df443];return _0x3ee434;};'use strict';var multer=require(_0xb168('0x0'));var util=require(_0xb168('0x1'));var path=require(_0xb168('0x2'));var timeout=require('connect-timeout');var express=require(_0xb168('0x3'));var router=express[_0xb168('0x4')]();var auth=require(_0xb168('0x5'));var interaction=require(_0xb168('0x6'));var config=require(_0xb168('0x7'));var controller=require(_0xb168('0x8'));router['get']('/',auth[_0xb168('0x9')](),controller[_0xb168('0xa')]);router[_0xb168('0xb')]('/describe',auth[_0xb168('0x9')](),controller[_0xb168('0xc')]);router[_0xb168('0xb')](_0xb168('0xd'),auth[_0xb168('0x9')](),controller[_0xb168('0xe')]);router[_0xb168('0xb')](_0xb168('0xf'),auth[_0xb168('0x9')](),controller[_0xb168('0x10')]);router[_0xb168('0xb')](_0xb168('0x11'),auth[_0xb168('0x9')](),controller['download']);router[_0xb168('0x12')]('/',auth['isAuthenticated'](),controller['create']);router[_0xb168('0x12')]('/:id/messages',auth[_0xb168('0x9')](),controller[_0xb168('0x13')]);router[_0xb168('0x12')](_0xb168('0x14'),auth[_0xb168('0x9')](),interaction[_0xb168('0x15')]('whatsapp',_0xb168('0x16')),controller[_0xb168('0x17')]);router[_0xb168('0x18')]('/:id',auth[_0xb168('0x9')](),interaction[_0xb168('0x15')](_0xb168('0x19'),_0xb168('0x1a')),controller[_0xb168('0x1b')]);router['delete'](_0xb168('0xd'),auth[_0xb168('0x9')](),interaction[_0xb168('0x15')](_0xb168('0x19'),_0xb168('0x1c')),controller[_0xb168('0x1d')]);router[_0xb168('0x1e')](_0xb168('0x14'),auth['isAuthenticated'](),controller[_0xb168('0x1f')]);module[_0xb168('0x20')]=router;