Built motion from commit ddca4d0d.|2.5.47
[motion2.git] / server / api / whatsappMessage / 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 _0x38fc=['./whatsappMessage.controller','get','isAuthenticated','index','/describe','describe','show','tracked','whatsapp','whatsappmessage:create','create','/:id/status','status','/:id','update','put','/:id/accept','accept','reject','destroy','util','connect-timeout','Router','../../components/interaction/service','../../config/environment'];(function(_0x3d07f2,_0x19854d){var _0x26052a=function(_0x213834){while(--_0x213834){_0x3d07f2['push'](_0x3d07f2['shift']());}};_0x26052a(++_0x19854d);}(_0x38fc,0x1ef));var _0xc38f=function(_0x21ca42,_0x301fe1){_0x21ca42=_0x21ca42-0x0;var _0x4c099f=_0x38fc[_0x21ca42];return _0x4c099f;};'use strict';var multer=require('multer');var util=require(_0xc38f('0x0'));var path=require('path');var timeout=require(_0xc38f('0x1'));var express=require('express');var router=express[_0xc38f('0x2')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0xc38f('0x3'));var config=require(_0xc38f('0x4'));var controller=require(_0xc38f('0x5'));router[_0xc38f('0x6')]('/',auth[_0xc38f('0x7')](),controller[_0xc38f('0x8')]);router[_0xc38f('0x6')](_0xc38f('0x9'),auth[_0xc38f('0x7')](),controller[_0xc38f('0xa')]);router[_0xc38f('0x6')]('/:id',auth['isAuthenticated'](),controller[_0xc38f('0xb')]);router['post']('/',auth[_0xc38f('0x7')](),interaction[_0xc38f('0xc')](_0xc38f('0xd'),_0xc38f('0xe')),controller[_0xc38f('0xf')]);router['post'](_0xc38f('0x10'),controller[_0xc38f('0x11')]);router['put'](_0xc38f('0x12'),auth['isAuthenticated'](),controller[_0xc38f('0x13')]);router[_0xc38f('0x14')](_0xc38f('0x15'),auth[_0xc38f('0x7')](),controller[_0xc38f('0x16')]);router[_0xc38f('0x14')]('/:id/reject',auth['isAuthenticated'](),controller[_0xc38f('0x17')]);router['delete'](_0xc38f('0x12'),auth['isAuthenticated'](),controller[_0xc38f('0x18')]);module['exports']=router;