a395e40c8fd126f9eb6efc188ce64d512647e6a5
[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 _0xbeb1=['path','connect-timeout','express','../../components/auth/service','../../components/interaction/service','../../config/environment','./whatsappAccount.controller','isAuthenticated','index','get','describe','/:id','show','/:id/dispositions','getDispositions','/:id/canned_answers','getAnswers','/:id/users','getAgents','getApplications','post','create','addDisposition','addAnswer','addAgents','/:id/applications','addApplications','/:id/notify','notify','send','put','update','delete','removeAnswers','removeAgents','exports','multer','util'];(function(_0x29e40e,_0x53d1c0){var _0x13936a=function(_0x28f2fb){while(--_0x28f2fb){_0x29e40e['push'](_0x29e40e['shift']());}};_0x13936a(++_0x53d1c0);}(_0xbeb1,0x154));var _0x1beb=function(_0x17d9e3,_0x1f969c){_0x17d9e3=_0x17d9e3-0x0;var _0x14192d=_0xbeb1[_0x17d9e3];return _0x14192d;};'use strict';var multer=require(_0x1beb('0x0'));var util=require(_0x1beb('0x1'));var path=require(_0x1beb('0x2'));var timeout=require(_0x1beb('0x3'));var express=require(_0x1beb('0x4'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0x1beb('0x5'));var interaction=require(_0x1beb('0x6'));var config=require(_0x1beb('0x7'));var controller=require(_0x1beb('0x8'));router['get']('/',auth[_0x1beb('0x9')](),controller[_0x1beb('0xa')]);router[_0x1beb('0xb')]('/describe',auth[_0x1beb('0x9')](),controller[_0x1beb('0xc')]);router[_0x1beb('0xb')](_0x1beb('0xd'),auth[_0x1beb('0x9')](),controller[_0x1beb('0xe')]);router[_0x1beb('0xb')](_0x1beb('0xf'),auth[_0x1beb('0x9')](),controller[_0x1beb('0x10')]);router[_0x1beb('0xb')](_0x1beb('0x11'),auth[_0x1beb('0x9')](),controller[_0x1beb('0x12')]);router['get'](_0x1beb('0x13'),auth[_0x1beb('0x9')](),controller[_0x1beb('0x14')]);router[_0x1beb('0xb')]('/:id/applications',auth[_0x1beb('0x9')](),controller[_0x1beb('0x15')]);router[_0x1beb('0x16')]('/',auth[_0x1beb('0x9')](),controller[_0x1beb('0x17')]);router[_0x1beb('0x16')](_0x1beb('0xf'),auth['isAuthenticated'](),controller[_0x1beb('0x18')]);router[_0x1beb('0x16')](_0x1beb('0x11'),auth[_0x1beb('0x9')](),controller[_0x1beb('0x19')]);router[_0x1beb('0x16')](_0x1beb('0x13'),auth[_0x1beb('0x9')](),controller[_0x1beb('0x1a')]);router[_0x1beb('0x16')](_0x1beb('0x1b'),auth['isAuthenticated'](),controller[_0x1beb('0x1c')]);router[_0x1beb('0x16')](_0x1beb('0x1d'),controller[_0x1beb('0x1e')]);router[_0x1beb('0x16')]('/:id/send',auth[_0x1beb('0x9')](),controller[_0x1beb('0x1f')]);router[_0x1beb('0x20')](_0x1beb('0xd'),auth[_0x1beb('0x9')](),controller[_0x1beb('0x21')]);router['delete'](_0x1beb('0xd'),auth[_0x1beb('0x9')](),controller['destroy']);router[_0x1beb('0x22')](_0x1beb('0xf'),auth[_0x1beb('0x9')](),controller['removeDispositions']);router[_0x1beb('0x22')](_0x1beb('0x11'),auth[_0x1beb('0x9')](),controller[_0x1beb('0x23')]);router['delete'](_0x1beb('0x13'),auth[_0x1beb('0x9')](),controller[_0x1beb('0x24')]);module[_0x1beb('0x25')]=router;