3f8a07cdbfdba6558f63d64ab143c29297fd6a49
[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 _0xe37b=['/:id','show','post','create','put','delete','destroy','exports','multer','path','connect-timeout','express','Router','fs-extra','../../config/environment','./whatsappApplication.controller','get','isAuthenticated','index'];(function(_0x1f00c2,_0xcbc08a){var _0x2c425e=function(_0x191137){while(--_0x191137){_0x1f00c2['push'](_0x1f00c2['shift']());}};_0x2c425e(++_0xcbc08a);}(_0xe37b,0xd9));var _0xbe37=function(_0x49fcdc,_0xa1199c){_0x49fcdc=_0x49fcdc-0x0;var _0x3b73bc=_0xe37b[_0x49fcdc];return _0x3b73bc;};'use strict';var multer=require(_0xbe37('0x0'));var util=require('util');var path=require(_0xbe37('0x1'));var timeout=require(_0xbe37('0x2'));var express=require(_0xbe37('0x3'));var router=express[_0xbe37('0x4')]();var fs_extra=require(_0xbe37('0x5'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0xbe37('0x6'));var controller=require(_0xbe37('0x7'));router[_0xbe37('0x8')]('/',auth[_0xbe37('0x9')](),controller[_0xbe37('0xa')]);router['get'](_0xbe37('0xb'),auth[_0xbe37('0x9')](),controller[_0xbe37('0xc')]);router[_0xbe37('0xd')]('/',auth[_0xbe37('0x9')](),controller[_0xbe37('0xe')]);router[_0xbe37('0xf')](_0xbe37('0xb'),auth[_0xbe37('0x9')](),controller['update']);router[_0xbe37('0x10')](_0xbe37('0xb'),auth[_0xbe37('0x9')](),controller[_0xbe37('0x11')]);module[_0xbe37('0x12')]=router;