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