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