Built motion from commit (unavailable).|2.5.10
[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 _0xe511=['post','create','addDisposition','addAnswer','/:id/applications','addApplications','/:id/notify','notify','/:id/send','send','put','destroy','removeDispositions','delete','removeAnswers','removeAgents','exports','multer','util','connect-timeout','Router','../../components/auth/service','../../config/environment','./whatsappAccount.controller','get','isAuthenticated','/describe','/:id','/:id/dispositions','getDispositions','/:id/canned_answers','getAnswers','/:id/users','getAgents','getApplications'];(function(_0xb82a8,_0x56ea77){var _0x15d659=function(_0x388083){while(--_0x388083){_0xb82a8['push'](_0xb82a8['shift']());}};_0x15d659(++_0x56ea77);}(_0xe511,0x16f));var _0x1e51=function(_0x152c9d,_0x371656){_0x152c9d=_0x152c9d-0x0;var _0x462f34=_0xe511[_0x152c9d];return _0x462f34;};'use strict';var multer=require(_0x1e51('0x0'));var util=require(_0x1e51('0x1'));var path=require('path');var timeout=require(_0x1e51('0x2'));var express=require('express');var router=express[_0x1e51('0x3')]();var auth=require(_0x1e51('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0x1e51('0x5'));var controller=require(_0x1e51('0x6'));router[_0x1e51('0x7')]('/',auth[_0x1e51('0x8')](),controller['index']);router[_0x1e51('0x7')](_0x1e51('0x9'),auth['isAuthenticated'](),controller['describe']);router[_0x1e51('0x7')](_0x1e51('0xa'),auth['isAuthenticated'](),controller['show']);router[_0x1e51('0x7')](_0x1e51('0xb'),auth[_0x1e51('0x8')](),controller[_0x1e51('0xc')]);router[_0x1e51('0x7')](_0x1e51('0xd'),auth['isAuthenticated'](),controller[_0x1e51('0xe')]);router[_0x1e51('0x7')](_0x1e51('0xf'),auth[_0x1e51('0x8')](),controller[_0x1e51('0x10')]);router[_0x1e51('0x7')]('/:id/applications',auth[_0x1e51('0x8')](),controller[_0x1e51('0x11')]);router[_0x1e51('0x12')]('/',auth[_0x1e51('0x8')](),controller[_0x1e51('0x13')]);router[_0x1e51('0x12')](_0x1e51('0xb'),auth[_0x1e51('0x8')](),controller[_0x1e51('0x14')]);router[_0x1e51('0x12')]('/:id/canned_answers',auth[_0x1e51('0x8')](),controller[_0x1e51('0x15')]);router[_0x1e51('0x12')]('/:id/users',auth[_0x1e51('0x8')](),controller['addAgents']);router['post'](_0x1e51('0x16'),auth[_0x1e51('0x8')](),controller[_0x1e51('0x17')]);router[_0x1e51('0x12')](_0x1e51('0x18'),controller[_0x1e51('0x19')]);router['post'](_0x1e51('0x1a'),auth['isAuthenticated'](),controller[_0x1e51('0x1b')]);router[_0x1e51('0x1c')](_0x1e51('0xa'),auth[_0x1e51('0x8')](),controller['update']);router['delete']('/:id',auth['isAuthenticated'](),controller[_0x1e51('0x1d')]);router['delete'](_0x1e51('0xb'),auth[_0x1e51('0x8')](),controller[_0x1e51('0x1e')]);router[_0x1e51('0x1f')](_0x1e51('0xd'),auth[_0x1e51('0x8')](),controller[_0x1e51('0x20')]);router[_0x1e51('0x1f')]('/:id/users',auth['isAuthenticated'](),controller[_0x1e51('0x21')]);module[_0x1e51('0x22')]=router;