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