0b63d9405b4b87eaca8fd10a2affd6305584d9cc
[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 _0x6c7b=['/:id/download','download','post','create','addMessage','/:id/tags','tracked','whatsappinteraction:addtags','whatsapp','whatsappinteraction:update','update','delete','whatsappinteraction:destroy','destroy','exports','multer','express','fs-extra','../../components/auth/service','../../components/interaction/service','./whatsappInteraction.controller','get','isAuthenticated','index','describe','/:id','show','/:id/messages'];(function(_0x248caa,_0x1bdac7){var _0x1c049a=function(_0x33b56a){while(--_0x33b56a){_0x248caa['push'](_0x248caa['shift']());}};_0x1c049a(++_0x1bdac7);}(_0x6c7b,0x10b));var _0xb6c7=function(_0x11c803,_0x236a36){_0x11c803=_0x11c803-0x0;var _0x4619b6=_0x6c7b[_0x11c803];return _0x4619b6;};'use strict';var multer=require(_0xb6c7('0x0'));var util=require('util');var path=require('path');var timeout=require('connect-timeout');var express=require(_0xb6c7('0x1'));var router=express['Router']();var fs_extra=require(_0xb6c7('0x2'));var auth=require(_0xb6c7('0x3'));var interaction=require(_0xb6c7('0x4'));var config=require('../../config/environment');var controller=require(_0xb6c7('0x5'));router[_0xb6c7('0x6')]('/',auth[_0xb6c7('0x7')](),controller[_0xb6c7('0x8')]);router[_0xb6c7('0x6')]('/describe',auth[_0xb6c7('0x7')](),controller[_0xb6c7('0x9')]);router[_0xb6c7('0x6')](_0xb6c7('0xa'),auth[_0xb6c7('0x7')](),controller[_0xb6c7('0xb')]);router[_0xb6c7('0x6')](_0xb6c7('0xc'),auth['isAuthenticated'](),controller['getMessages']);router[_0xb6c7('0x6')](_0xb6c7('0xd'),auth[_0xb6c7('0x7')](),controller[_0xb6c7('0xe')]);router[_0xb6c7('0xf')]('/',auth[_0xb6c7('0x7')](),controller[_0xb6c7('0x10')]);router['post'](_0xb6c7('0xc'),auth[_0xb6c7('0x7')](),controller[_0xb6c7('0x11')]);router[_0xb6c7('0xf')](_0xb6c7('0x12'),auth[_0xb6c7('0x7')](),interaction[_0xb6c7('0x13')]('whatsapp',_0xb6c7('0x14')),controller['addTags']);router['put']('/:id',auth[_0xb6c7('0x7')](),interaction['tracked'](_0xb6c7('0x15'),_0xb6c7('0x16')),controller[_0xb6c7('0x17')]);router[_0xb6c7('0x18')](_0xb6c7('0xa'),auth[_0xb6c7('0x7')](),interaction[_0xb6c7('0x13')](_0xb6c7('0x15'),_0xb6c7('0x19')),controller[_0xb6c7('0x1a')]);router[_0xb6c7('0x18')](_0xb6c7('0x12'),auth[_0xb6c7('0x7')](),controller['removeTags']);module[_0xb6c7('0x1b')]=router;