efaf4979d080a7598cece8c4e99f2bc6d3f0b88e
[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 _0xf69d=['put','whatsappinteraction:update','delete','tracked','destroy','removeTags','exports','multer','util','path','connect-timeout','express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./whatsappInteraction.controller','get','isAuthenticated','index','/describe','describe','/:id','show','getMessages','/:id/download','download','/:id/messages','addMessage','post','/:id/tags','whatsapp','whatsappinteraction:addtags','addTags'];(function(_0x2eedb5,_0x2e1801){var _0x534cd6=function(_0x17100c){while(--_0x17100c){_0x2eedb5['push'](_0x2eedb5['shift']());}};_0x534cd6(++_0x2e1801);}(_0xf69d,0xd3));var _0xdf69=function(_0xab70b6,_0x48df75){_0xab70b6=_0xab70b6-0x0;var _0xbd31de=_0xf69d[_0xab70b6];return _0xbd31de;};'use strict';var multer=require(_0xdf69('0x0'));var util=require(_0xdf69('0x1'));var path=require(_0xdf69('0x2'));var timeout=require(_0xdf69('0x3'));var express=require(_0xdf69('0x4'));var router=express['Router']();var fs_extra=require(_0xdf69('0x5'));var auth=require(_0xdf69('0x6'));var interaction=require(_0xdf69('0x7'));var config=require(_0xdf69('0x8'));var controller=require(_0xdf69('0x9'));router[_0xdf69('0xa')]('/',auth[_0xdf69('0xb')](),controller[_0xdf69('0xc')]);router[_0xdf69('0xa')](_0xdf69('0xd'),auth[_0xdf69('0xb')](),controller[_0xdf69('0xe')]);router[_0xdf69('0xa')](_0xdf69('0xf'),auth[_0xdf69('0xb')](),controller[_0xdf69('0x10')]);router[_0xdf69('0xa')]('/:id/messages',auth[_0xdf69('0xb')](),controller[_0xdf69('0x11')]);router[_0xdf69('0xa')](_0xdf69('0x12'),auth[_0xdf69('0xb')](),controller[_0xdf69('0x13')]);router['post']('/',auth['isAuthenticated'](),controller['create']);router['post'](_0xdf69('0x14'),auth[_0xdf69('0xb')](),controller[_0xdf69('0x15')]);router[_0xdf69('0x16')](_0xdf69('0x17'),auth[_0xdf69('0xb')](),interaction['tracked'](_0xdf69('0x18'),_0xdf69('0x19')),controller[_0xdf69('0x1a')]);router[_0xdf69('0x1b')]('/:id',auth[_0xdf69('0xb')](),interaction['tracked'](_0xdf69('0x18'),_0xdf69('0x1c')),controller['update']);router[_0xdf69('0x1d')](_0xdf69('0xf'),auth[_0xdf69('0xb')](),interaction[_0xdf69('0x1e')]('whatsapp','whatsappinteraction:destroy'),controller[_0xdf69('0x1f')]);router[_0xdf69('0x1d')]('/:id/tags',auth[_0xdf69('0xb')](),controller[_0xdf69('0x20')]);module[_0xdf69('0x21')]=router;