Built motion from commit (unavailable).|2.5.2
[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 _0x5a1d=['getMessages','/:id/download','download','post','addMessage','/:id/tags','tracked','whatsapp','whatsappinteraction:addtags','put','/:id','whatsappinteraction:update','update','whatsappinteraction:destroy','delete','removeTags','exports','multer','util','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./whatsappInteraction.controller','get','isAuthenticated','/describe','/:id/messages'];(function(_0x3eb1c1,_0x1bb418){var _0x53645a=function(_0x5824b8){while(--_0x5824b8){_0x3eb1c1['push'](_0x3eb1c1['shift']());}};_0x53645a(++_0x1bb418);}(_0x5a1d,0xbf));var _0xd5a1=function(_0x5eb316,_0x9cd4f5){_0x5eb316=_0x5eb316-0x0;var _0xcc24bd=_0x5a1d[_0x5eb316];return _0xcc24bd;};'use strict';var multer=require(_0xd5a1('0x0'));var util=require(_0xd5a1('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0xd5a1('0x2'));var router=express[_0xd5a1('0x3')]();var auth=require(_0xd5a1('0x4'));var interaction=require(_0xd5a1('0x5'));var config=require(_0xd5a1('0x6'));var controller=require(_0xd5a1('0x7'));router[_0xd5a1('0x8')]('/',auth[_0xd5a1('0x9')](),controller['index']);router[_0xd5a1('0x8')](_0xd5a1('0xa'),auth['isAuthenticated'](),controller['describe']);router['get']('/:id',auth['isAuthenticated'](),controller['show']);router[_0xd5a1('0x8')](_0xd5a1('0xb'),auth[_0xd5a1('0x9')](),controller[_0xd5a1('0xc')]);router[_0xd5a1('0x8')](_0xd5a1('0xd'),auth[_0xd5a1('0x9')](),controller[_0xd5a1('0xe')]);router[_0xd5a1('0xf')]('/',auth['isAuthenticated'](),controller['create']);router[_0xd5a1('0xf')](_0xd5a1('0xb'),auth[_0xd5a1('0x9')](),controller[_0xd5a1('0x10')]);router['post'](_0xd5a1('0x11'),auth[_0xd5a1('0x9')](),interaction[_0xd5a1('0x12')](_0xd5a1('0x13'),_0xd5a1('0x14')),controller['addTags']);router[_0xd5a1('0x15')](_0xd5a1('0x16'),auth[_0xd5a1('0x9')](),interaction[_0xd5a1('0x12')](_0xd5a1('0x13'),_0xd5a1('0x17')),controller[_0xd5a1('0x18')]);router['delete'](_0xd5a1('0x16'),auth[_0xd5a1('0x9')](),interaction[_0xd5a1('0x12')]('whatsapp',_0xd5a1('0x19')),controller['destroy']);router[_0xd5a1('0x1a')](_0xd5a1('0x11'),auth[_0xd5a1('0x9')](),controller[_0xd5a1('0x1b')]);module[_0xd5a1('0x1c')]=router;