Built motion from commit 9d0783e6.|2.6.13
[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 _0x1cc1=['util','path','connect-timeout','express','Router','./whatsappApplication.controller','get','isAuthenticated','index','/:id','post','put','update','delete','destroy','exports'];(function(_0x42c778,_0xbef382){var _0x5571e1=function(_0xc50da2){while(--_0xc50da2){_0x42c778['push'](_0x42c778['shift']());}};_0x5571e1(++_0xbef382);}(_0x1cc1,0x180));var _0x11cc=function(_0x2de136,_0x52333f){_0x2de136=_0x2de136-0x0;var _0x52714e=_0x1cc1[_0x2de136];return _0x52714e;};'use strict';var multer=require('multer');var util=require(_0x11cc('0x0'));var path=require(_0x11cc('0x1'));var timeout=require(_0x11cc('0x2'));var express=require(_0x11cc('0x3'));var router=express[_0x11cc('0x4')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x11cc('0x5'));router[_0x11cc('0x6')]('/',auth[_0x11cc('0x7')](),controller[_0x11cc('0x8')]);router[_0x11cc('0x6')](_0x11cc('0x9'),auth[_0x11cc('0x7')](),controller['show']);router[_0x11cc('0xa')]('/',auth[_0x11cc('0x7')](),controller['create']);router[_0x11cc('0xb')](_0x11cc('0x9'),auth[_0x11cc('0x7')](),controller[_0x11cc('0xc')]);router[_0x11cc('0xd')](_0x11cc('0x9'),auth[_0x11cc('0x7')](),controller[_0x11cc('0xe')]);module[_0x11cc('0xf')]=router;