Built motion from commit (unavailable).|2.5.4
[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 _0x99b8=['exports','multer','path','connect-timeout','express','../../components/auth/service','../../components/interaction/service','../../config/environment','./whatsappApplication.controller','get','isAuthenticated','index','/:id','show','post','create','put','delete','destroy'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x99b8,0x190));var _0x899b=function(_0x56decb,_0x1c2262){_0x56decb=_0x56decb-0x0;var _0x1e11c9=_0x99b8[_0x56decb];return _0x1e11c9;};'use strict';var multer=require(_0x899b('0x0'));var util=require('util');var path=require(_0x899b('0x1'));var timeout=require(_0x899b('0x2'));var express=require(_0x899b('0x3'));var router=express['Router']();var auth=require(_0x899b('0x4'));var interaction=require(_0x899b('0x5'));var config=require(_0x899b('0x6'));var controller=require(_0x899b('0x7'));router[_0x899b('0x8')]('/',auth[_0x899b('0x9')](),controller[_0x899b('0xa')]);router[_0x899b('0x8')](_0x899b('0xb'),auth[_0x899b('0x9')](),controller[_0x899b('0xc')]);router[_0x899b('0xd')]('/',auth[_0x899b('0x9')](),controller[_0x899b('0xe')]);router[_0x899b('0xf')](_0x899b('0xb'),auth[_0x899b('0x9')](),controller['update']);router[_0x899b('0x10')](_0x899b('0xb'),auth['isAuthenticated'](),controller[_0x899b('0x11')]);module[_0x899b('0x12')]=router;