d8673336774fac3c8a4d0b442ca991b8ef9ee50d
[motion2.git] / server / api / whatsappApplication / 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 _0x9e9a=['path','connect-timeout','../../components/interaction/service','../../config/environment','./whatsappApplication.controller','get','index','isAuthenticated','show','create','put','/:id','delete','destroy','exports','util'];(function(_0x45e1dd,_0x283d44){var _0x232cd8=function(_0x5ca12d){while(--_0x5ca12d){_0x45e1dd['push'](_0x45e1dd['shift']());}};_0x232cd8(++_0x283d44);}(_0x9e9a,0x13f));var _0xa9e9=function(_0x481ff7,_0x2b6ebb){_0x481ff7=_0x481ff7-0x0;var _0x1c1573=_0x9e9a[_0x481ff7];return _0x1c1573;};'use strict';var multer=require('multer');var util=require(_0xa9e9('0x0'));var path=require(_0xa9e9('0x1'));var timeout=require(_0xa9e9('0x2'));var express=require('express');var router=express['Router']();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0xa9e9('0x3'));var config=require(_0xa9e9('0x4'));var controller=require(_0xa9e9('0x5'));router[_0xa9e9('0x6')]('/',auth['isAuthenticated'](),controller[_0xa9e9('0x7')]);router[_0xa9e9('0x6')]('/:id',auth[_0xa9e9('0x8')](),controller[_0xa9e9('0x9')]);router['post']('/',auth[_0xa9e9('0x8')](),controller[_0xa9e9('0xa')]);router[_0xa9e9('0xb')](_0xa9e9('0xc'),auth[_0xa9e9('0x8')](),controller['update']);router[_0xa9e9('0xd')](_0xa9e9('0xc'),auth[_0xa9e9('0x8')](),controller[_0xa9e9('0xe')]);module[_0xa9e9('0xf')]=router;