d11259a848d430fd1415df9d014fcdb41cc0130f
[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 _0x6088=['destroy','exports','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../config/environment','get','isAuthenticated','/:id','show','post','create','put','update','delete'];(function(_0x4488ed,_0x40c5cd){var _0x20126a=function(_0x56971d){while(--_0x56971d){_0x4488ed['push'](_0x4488ed['shift']());}};_0x20126a(++_0x40c5cd);}(_0x6088,0x1b2));var _0x8608=function(_0x1be543,_0x338c1b){_0x1be543=_0x1be543-0x0;var _0x4f5d61=_0x6088[_0x1be543];return _0x4f5d61;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x8608('0x0'));var timeout=require(_0x8608('0x1'));var express=require(_0x8608('0x2'));var router=express[_0x8608('0x3')]();var fs_extra=require(_0x8608('0x4'));var auth=require(_0x8608('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x8608('0x6'));var controller=require('./whatsappApplication.controller');router[_0x8608('0x7')]('/',auth[_0x8608('0x8')](),controller['index']);router[_0x8608('0x7')](_0x8608('0x9'),auth[_0x8608('0x8')](),controller[_0x8608('0xa')]);router[_0x8608('0xb')]('/',auth['isAuthenticated'](),controller[_0x8608('0xc')]);router[_0x8608('0xd')](_0x8608('0x9'),auth[_0x8608('0x8')](),controller[_0x8608('0xe')]);router[_0x8608('0xf')](_0x8608('0x9'),auth[_0x8608('0x8')](),controller[_0x8608('0x10')]);module[_0x8608('0x11')]=router;