f152e3f37c911a68177e0bf3fd70c0a9c2c9a87e
[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 _0x173c=['delete','exports','path','connect-timeout','express','fs-extra','../../components/auth/service','../../components/interaction/service','get','isAuthenticated','index','/describe','describe','/:id','show','post','tracked','whatsapp','create','/:id/status','status','update','accept','put'];(function(_0x28a0b2,_0xe0932d){var _0x3775ac=function(_0x4befea){while(--_0x4befea){_0x28a0b2['push'](_0x28a0b2['shift']());}};_0x3775ac(++_0xe0932d);}(_0x173c,0x1ca));var _0xc173=function(_0x2b9d75,_0x6b055e){_0x2b9d75=_0x2b9d75-0x0;var _0x43a241=_0x173c[_0x2b9d75];return _0x43a241;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0xc173('0x0'));var timeout=require(_0xc173('0x1'));var express=require(_0xc173('0x2'));var router=express['Router']();var fs_extra=require(_0xc173('0x3'));var auth=require(_0xc173('0x4'));var interaction=require(_0xc173('0x5'));var config=require('../../config/environment');var controller=require('./whatsappMessage.controller');router[_0xc173('0x6')]('/',auth[_0xc173('0x7')](),controller[_0xc173('0x8')]);router[_0xc173('0x6')](_0xc173('0x9'),auth['isAuthenticated'](),controller[_0xc173('0xa')]);router[_0xc173('0x6')](_0xc173('0xb'),auth[_0xc173('0x7')](),controller[_0xc173('0xc')]);router[_0xc173('0xd')]('/',auth[_0xc173('0x7')](),interaction[_0xc173('0xe')](_0xc173('0xf'),'whatsappmessage:create'),controller[_0xc173('0x10')]);router[_0xc173('0xd')](_0xc173('0x11'),controller[_0xc173('0x12')]);router['put'](_0xc173('0xb'),auth[_0xc173('0x7')](),controller[_0xc173('0x13')]);router['put']('/:id/accept',auth[_0xc173('0x7')](),controller[_0xc173('0x14')]);router[_0xc173('0x15')]('/:id/reject',auth[_0xc173('0x7')](),controller['reject']);router[_0xc173('0x16')](_0xc173('0xb'),auth['isAuthenticated'](),controller['destroy']);module[_0xc173('0x17')]=router;