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