3c3f56a84c8ff616af59d2e3ef85386b0c00ba0e
[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 _0x3124=['isAuthenticated','/:id','show','post','create','put','update','delete','destroy','exports','multer','path','Router','../../components/auth/service','../../components/interaction/service','get'];(function(_0x5b5ef8,_0x3f7000){var _0x185118=function(_0x13bfdd){while(--_0x13bfdd){_0x5b5ef8['push'](_0x5b5ef8['shift']());}};_0x185118(++_0x3f7000);}(_0x3124,0x17a));var _0x4312=function(_0x5a9ea9,_0x243c2b){_0x5a9ea9=_0x5a9ea9-0x0;var _0x5b8375=_0x3124[_0x5a9ea9];return _0x5b8375;};'use strict';var multer=require(_0x4312('0x0'));var util=require('util');var path=require(_0x4312('0x1'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x4312('0x2')]();var fs_extra=require('fs-extra');var auth=require(_0x4312('0x3'));var interaction=require(_0x4312('0x4'));var config=require('../../config/environment');var controller=require('./whatsappApplication.controller');router[_0x4312('0x5')]('/',auth[_0x4312('0x6')](),controller['index']);router[_0x4312('0x5')](_0x4312('0x7'),auth[_0x4312('0x6')](),controller[_0x4312('0x8')]);router[_0x4312('0x9')]('/',auth['isAuthenticated'](),controller[_0x4312('0xa')]);router[_0x4312('0xb')](_0x4312('0x7'),auth['isAuthenticated'](),controller[_0x4312('0xc')]);router[_0x4312('0xd')](_0x4312('0x7'),auth['isAuthenticated'](),controller[_0x4312('0xe')]);module[_0x4312('0xf')]=router;