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