594240e3544a97fcbd0f10437901870f8ec0e2c0
[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 _0x7bd0=['exports','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../config/environment','./whatsappInteraction.controller','get','isAuthenticated','index','/describe','describe','/:id','show','/:id/messages','getMessages','download','post','create','/:id/tags','tracked','whatsapp','whatsappinteraction:addtags','addTags','put','whatsappinteraction:update','update','delete','destroy','removeTags'];(function(_0x49ae45,_0x5301fc){var _0x5c5d5f=function(_0x30fba7){while(--_0x30fba7){_0x49ae45['push'](_0x49ae45['shift']());}};_0x5c5d5f(++_0x5301fc);}(_0x7bd0,0x111));var _0x07bd=function(_0x3a07c1,_0x34d57f){_0x3a07c1=_0x3a07c1-0x0;var _0x2bbe15=_0x7bd0[_0x3a07c1];return _0x2bbe15;};'use strict';var multer=require(_0x07bd('0x0'));var util=require(_0x07bd('0x1'));var path=require(_0x07bd('0x2'));var timeout=require(_0x07bd('0x3'));var express=require(_0x07bd('0x4'));var router=express[_0x07bd('0x5')]();var fs_extra=require(_0x07bd('0x6'));var auth=require(_0x07bd('0x7'));var interaction=require('../../components/interaction/service');var config=require(_0x07bd('0x8'));var controller=require(_0x07bd('0x9'));router[_0x07bd('0xa')]('/',auth[_0x07bd('0xb')](),controller[_0x07bd('0xc')]);router[_0x07bd('0xa')](_0x07bd('0xd'),auth['isAuthenticated'](),controller[_0x07bd('0xe')]);router['get'](_0x07bd('0xf'),auth[_0x07bd('0xb')](),controller[_0x07bd('0x10')]);router['get'](_0x07bd('0x11'),auth[_0x07bd('0xb')](),controller[_0x07bd('0x12')]);router[_0x07bd('0xa')]('/:id/download',auth[_0x07bd('0xb')](),controller[_0x07bd('0x13')]);router[_0x07bd('0x14')]('/',auth[_0x07bd('0xb')](),controller[_0x07bd('0x15')]);router[_0x07bd('0x14')](_0x07bd('0x11'),auth[_0x07bd('0xb')](),controller['addMessage']);router['post'](_0x07bd('0x16'),auth[_0x07bd('0xb')](),interaction[_0x07bd('0x17')](_0x07bd('0x18'),_0x07bd('0x19')),controller[_0x07bd('0x1a')]);router[_0x07bd('0x1b')]('/:id',auth[_0x07bd('0xb')](),interaction['tracked'](_0x07bd('0x18'),_0x07bd('0x1c')),controller[_0x07bd('0x1d')]);router[_0x07bd('0x1e')](_0x07bd('0xf'),auth['isAuthenticated'](),interaction[_0x07bd('0x17')](_0x07bd('0x18'),'whatsappinteraction:destroy'),controller[_0x07bd('0x1f')]);router[_0x07bd('0x1e')](_0x07bd('0x16'),auth[_0x07bd('0xb')](),controller[_0x07bd('0x20')]);module[_0x07bd('0x21')]=router;