b314cccf0ac8e3e89af626adf7e4fc7d89c477eb
[motion2.git] / server / api / whatsappAccount / 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 _0x6cd9=['show','/:id/dispositions','getDispositions','/:id/canned_answers','/:id/users','getAgents','/:id/applications','getApplications','post','create','addDisposition','addAgents','addApplications','/:id/notify','notify','send','put','destroy','delete','removeDispositions','removeAnswers','exports','multer','path','express','Router','../../components/interaction/service','../../config/environment','./whatsappAccount.controller','get','index','/describe','isAuthenticated','/:id'];(function(_0x20a584,_0xe384a5){var _0x4b41a8=function(_0x2127c6){while(--_0x2127c6){_0x20a584['push'](_0x20a584['shift']());}};_0x4b41a8(++_0xe384a5);}(_0x6cd9,0x9e));var _0x96cd=function(_0xb1157a,_0x2d5b6){_0xb1157a=_0xb1157a-0x0;var _0x23a37b=_0x6cd9[_0xb1157a];return _0x23a37b;};'use strict';var multer=require(_0x96cd('0x0'));var util=require('util');var path=require(_0x96cd('0x1'));var timeout=require('connect-timeout');var express=require(_0x96cd('0x2'));var router=express[_0x96cd('0x3')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0x96cd('0x4'));var config=require(_0x96cd('0x5'));var controller=require(_0x96cd('0x6'));router[_0x96cd('0x7')]('/',auth['isAuthenticated'](),controller[_0x96cd('0x8')]);router['get'](_0x96cd('0x9'),auth[_0x96cd('0xa')](),controller['describe']);router[_0x96cd('0x7')](_0x96cd('0xb'),auth[_0x96cd('0xa')](),controller[_0x96cd('0xc')]);router[_0x96cd('0x7')](_0x96cd('0xd'),auth[_0x96cd('0xa')](),controller[_0x96cd('0xe')]);router[_0x96cd('0x7')](_0x96cd('0xf'),auth['isAuthenticated'](),controller['getAnswers']);router[_0x96cd('0x7')](_0x96cd('0x10'),auth[_0x96cd('0xa')](),controller[_0x96cd('0x11')]);router[_0x96cd('0x7')](_0x96cd('0x12'),auth[_0x96cd('0xa')](),controller[_0x96cd('0x13')]);router[_0x96cd('0x14')]('/',auth['isAuthenticated'](),controller[_0x96cd('0x15')]);router[_0x96cd('0x14')](_0x96cd('0xd'),auth[_0x96cd('0xa')](),controller[_0x96cd('0x16')]);router[_0x96cd('0x14')](_0x96cd('0xf'),auth[_0x96cd('0xa')](),controller['addAnswer']);router[_0x96cd('0x14')](_0x96cd('0x10'),auth['isAuthenticated'](),controller[_0x96cd('0x17')]);router[_0x96cd('0x14')]('/:id/applications',auth['isAuthenticated'](),controller[_0x96cd('0x18')]);router['post'](_0x96cd('0x19'),controller[_0x96cd('0x1a')]);router[_0x96cd('0x14')]('/:id/send',auth[_0x96cd('0xa')](),controller[_0x96cd('0x1b')]);router[_0x96cd('0x1c')](_0x96cd('0xb'),auth[_0x96cd('0xa')](),controller['update']);router['delete'](_0x96cd('0xb'),auth['isAuthenticated'](),controller[_0x96cd('0x1d')]);router[_0x96cd('0x1e')](_0x96cd('0xd'),auth['isAuthenticated'](),controller[_0x96cd('0x1f')]);router[_0x96cd('0x1e')]('/:id/canned_answers',auth[_0x96cd('0xa')](),controller[_0x96cd('0x20')]);router[_0x96cd('0x1e')](_0x96cd('0x10'),auth[_0x96cd('0xa')](),controller['removeAgents']);module[_0x96cd('0x21')]=router;