Built motion from commit 5b761a7b.|2.5.36
[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 _0x9788=['path','connect-timeout','express','Router','../../components/interaction/service','./whatsappApplication.controller','get','index','/:id','isAuthenticated','show','post','create','delete','destroy','exports','multer','util'];(function(_0x22ccd0,_0x6eb4bc){var _0x54491d=function(_0x6ab98b){while(--_0x6ab98b){_0x22ccd0['push'](_0x22ccd0['shift']());}};_0x54491d(++_0x6eb4bc);}(_0x9788,0x154));var _0x8978=function(_0x26eefb,_0x5316cb){_0x26eefb=_0x26eefb-0x0;var _0x4402c2=_0x9788[_0x26eefb];return _0x4402c2;};'use strict';var multer=require(_0x8978('0x0'));var util=require(_0x8978('0x1'));var path=require(_0x8978('0x2'));var timeout=require(_0x8978('0x3'));var express=require(_0x8978('0x4'));var router=express[_0x8978('0x5')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0x8978('0x6'));var config=require('../../config/environment');var controller=require(_0x8978('0x7'));router[_0x8978('0x8')]('/',auth['isAuthenticated'](),controller[_0x8978('0x9')]);router[_0x8978('0x8')](_0x8978('0xa'),auth[_0x8978('0xb')](),controller[_0x8978('0xc')]);router[_0x8978('0xd')]('/',auth[_0x8978('0xb')](),controller[_0x8978('0xe')]);router['put'](_0x8978('0xa'),auth['isAuthenticated'](),controller['update']);router[_0x8978('0xf')](_0x8978('0xa'),auth[_0x8978('0xb')](),controller[_0x8978('0x10')]);module[_0x8978('0x11')]=router;