055f4d02740f96bf22a368508c05ffa0bd9610c1
[motion2.git] / server / api / mailAccount / 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 _0xa1b1=['getDispositions','/:id/canned_answers','/:id/in_servers','getImap','/:id/out_servers','getSmtp','getInteractions','getApplications','/:id/messages','getMessages','/:id/verify','verifySmtp','addDisposition','addAnswer','post','create','/:id/interactions','addInteraction','/:id/applications','addApplications','/:id/send','send','/:id/users','addAgents','put','/:id','update','delete','removeImap','destroy','removeAgents','multer','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/describe','describe','/:id/dispositions'];(function(_0x51216,_0x157254){var _0x3d7040=function(_0x423957){while(--_0x423957){_0x51216['push'](_0x51216['shift']());}};_0x3d7040(++_0x157254);}(_0xa1b1,0xd3));var _0x1a1b=function(_0x26a515,_0x286339){_0x26a515=_0x26a515-0x0;var _0x314682=_0xa1b1[_0x26a515];return _0x314682;};'use strict';var multer=require(_0x1a1b('0x0'));var util=require('util');var path=require(_0x1a1b('0x1'));var timeout=require(_0x1a1b('0x2'));var express=require(_0x1a1b('0x3'));var router=express[_0x1a1b('0x4')]();var auth=require(_0x1a1b('0x5'));var interaction=require(_0x1a1b('0x6'));var config=require(_0x1a1b('0x7'));var controller=require('./mailAccount.controller');router[_0x1a1b('0x8')]('/',auth[_0x1a1b('0x9')](),controller[_0x1a1b('0xa')]);router[_0x1a1b('0x8')](_0x1a1b('0xb'),auth['isAuthenticated'](),controller[_0x1a1b('0xc')]);router['get']('/:id',auth['isAuthenticated'](),controller['show']);router[_0x1a1b('0x8')](_0x1a1b('0xd'),auth['isAuthenticated'](),controller[_0x1a1b('0xe')]);router[_0x1a1b('0x8')](_0x1a1b('0xf'),auth['isAuthenticated'](),controller['getAnswers']);router['get'](_0x1a1b('0x10'),auth[_0x1a1b('0x9')](),controller[_0x1a1b('0x11')]);router[_0x1a1b('0x8')](_0x1a1b('0x12'),auth[_0x1a1b('0x9')](),controller[_0x1a1b('0x13')]);router[_0x1a1b('0x8')]('/:id/interactions',auth[_0x1a1b('0x9')](),controller[_0x1a1b('0x14')]);router['get']('/:id/applications',auth['isAuthenticated'](),controller[_0x1a1b('0x15')]);router[_0x1a1b('0x8')](_0x1a1b('0x16'),auth[_0x1a1b('0x9')](),controller[_0x1a1b('0x17')]);router[_0x1a1b('0x8')](_0x1a1b('0x18'),auth['isAuthenticated'](),controller[_0x1a1b('0x19')]);router[_0x1a1b('0x8')]('/:id/users',auth[_0x1a1b('0x9')](),controller['getAgents']);router['post']('/:id/dispositions',auth[_0x1a1b('0x9')](),controller[_0x1a1b('0x1a')]);router['post'](_0x1a1b('0xf'),auth[_0x1a1b('0x9')](),controller[_0x1a1b('0x1b')]);router[_0x1a1b('0x1c')]('/',auth[_0x1a1b('0x9')](),controller[_0x1a1b('0x1d')]);router['post']('/:id/in_servers',auth[_0x1a1b('0x9')](),controller['addImap']);router['post'](_0x1a1b('0x12'),auth['isAuthenticated'](),controller['addSmtp']);router[_0x1a1b('0x1c')](_0x1a1b('0x1e'),auth[_0x1a1b('0x9')](),controller[_0x1a1b('0x1f')]);router[_0x1a1b('0x1c')](_0x1a1b('0x20'),auth['isAuthenticated'](),controller[_0x1a1b('0x21')]);router['post'](_0x1a1b('0x22'),auth[_0x1a1b('0x9')](),controller[_0x1a1b('0x23')]);router[_0x1a1b('0x1c')](_0x1a1b('0x24'),auth[_0x1a1b('0x9')](),controller[_0x1a1b('0x25')]);router[_0x1a1b('0x26')](_0x1a1b('0x27'),auth['isAuthenticated'](),controller[_0x1a1b('0x28')]);router[_0x1a1b('0x29')](_0x1a1b('0xd'),auth[_0x1a1b('0x9')](),controller['removeDispositions']);router[_0x1a1b('0x29')](_0x1a1b('0xf'),auth[_0x1a1b('0x9')](),controller['removeAnswers']);router['delete'](_0x1a1b('0x10'),auth[_0x1a1b('0x9')](),controller[_0x1a1b('0x2a')]);router[_0x1a1b('0x29')](_0x1a1b('0x12'),auth[_0x1a1b('0x9')](),controller['removeSmtp']);router[_0x1a1b('0x29')](_0x1a1b('0x27'),auth[_0x1a1b('0x9')](),controller[_0x1a1b('0x2b')]);router[_0x1a1b('0x29')](_0x1a1b('0x24'),auth[_0x1a1b('0x9')](),controller[_0x1a1b('0x2c')]);module['exports']=router;