Built motion from commit 9d7072cc.|2.5.39
[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 _0xada3=['isAuthenticated','/:id','show','create','update','delete','destroy','exports','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get'];(function(_0x1a157c,_0x28f913){var _0x46f116=function(_0x5c3217){while(--_0x5c3217){_0x1a157c['push'](_0x1a157c['shift']());}};_0x46f116(++_0x28f913);}(_0xada3,0xf8));var _0x3ada=function(_0x38af38,_0x3c9281){_0x38af38=_0x38af38-0x0;var _0x28e87d=_0xada3[_0x38af38];return _0x28e87d;};'use strict';var multer=require('multer');var util=require('util');var path=require('path');var timeout=require(_0x3ada('0x0'));var express=require(_0x3ada('0x1'));var router=express[_0x3ada('0x2')]();var fs_extra=require(_0x3ada('0x3'));var auth=require(_0x3ada('0x4'));var interaction=require(_0x3ada('0x5'));var config=require(_0x3ada('0x6'));var controller=require('./whatsappApplication.controller');router[_0x3ada('0x7')]('/',auth[_0x3ada('0x8')](),controller['index']);router[_0x3ada('0x7')](_0x3ada('0x9'),auth[_0x3ada('0x8')](),controller[_0x3ada('0xa')]);router['post']('/',auth[_0x3ada('0x8')](),controller[_0x3ada('0xb')]);router['put'](_0x3ada('0x9'),auth['isAuthenticated'](),controller[_0x3ada('0xc')]);router[_0x3ada('0xd')](_0x3ada('0x9'),auth[_0x3ada('0x8')](),controller[_0x3ada('0xe')]);module[_0x3ada('0xf')]=router;