bcc4e9d3d680584cb2fcdd582a4a5815d75c20aa
[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 _0x7b2f=['addDisposition','addImap','addSmtp','addApplications','/:id/send','addAgents','put','/:id','update','removeDispositions','delete','removeImap','removeSmtp','destroy','removeAgents','exports','multer','express','fs-extra','../../components/auth/service','../../config/environment','./mailAccount.controller','get','index','/describe','isAuthenticated','describe','/:id/dispositions','/:id/canned_answers','getAnswers','/:id/in_servers','/:id/out_servers','getSmtp','getInteractions','/:id/messages','getMessages','/:id/verify','/:id/users','getAgents','post'];(function(_0x4e1244,_0x4bfbec){var _0x3dbb98=function(_0x22820c){while(--_0x22820c){_0x4e1244['push'](_0x4e1244['shift']());}};_0x3dbb98(++_0x4bfbec);}(_0x7b2f,0x1c8));var _0xf7b2=function(_0x3a10e3,_0x3cdb35){_0x3a10e3=_0x3a10e3-0x0;var _0xf067c8=_0x7b2f[_0x3a10e3];return _0xf067c8;};'use strict';var multer=require(_0xf7b2('0x0'));var util=require('util');var path=require('path');var timeout=require('connect-timeout');var express=require(_0xf7b2('0x1'));var router=express['Router']();var fs_extra=require(_0xf7b2('0x2'));var auth=require(_0xf7b2('0x3'));var interaction=require('../../components/interaction/service');var config=require(_0xf7b2('0x4'));var controller=require(_0xf7b2('0x5'));router[_0xf7b2('0x6')]('/',auth['isAuthenticated'](),controller[_0xf7b2('0x7')]);router[_0xf7b2('0x6')](_0xf7b2('0x8'),auth[_0xf7b2('0x9')](),controller[_0xf7b2('0xa')]);router[_0xf7b2('0x6')]('/:id',auth[_0xf7b2('0x9')](),controller['show']);router[_0xf7b2('0x6')](_0xf7b2('0xb'),auth[_0xf7b2('0x9')](),controller['getDispositions']);router[_0xf7b2('0x6')](_0xf7b2('0xc'),auth[_0xf7b2('0x9')](),controller[_0xf7b2('0xd')]);router[_0xf7b2('0x6')](_0xf7b2('0xe'),auth[_0xf7b2('0x9')](),controller['getImap']);router[_0xf7b2('0x6')](_0xf7b2('0xf'),auth[_0xf7b2('0x9')](),controller[_0xf7b2('0x10')]);router[_0xf7b2('0x6')]('/:id/interactions',auth[_0xf7b2('0x9')](),controller[_0xf7b2('0x11')]);router[_0xf7b2('0x6')]('/:id/applications',auth['isAuthenticated'](),controller['getApplications']);router[_0xf7b2('0x6')](_0xf7b2('0x12'),auth['isAuthenticated'](),controller[_0xf7b2('0x13')]);router[_0xf7b2('0x6')](_0xf7b2('0x14'),auth[_0xf7b2('0x9')](),controller['verifySmtp']);router['get'](_0xf7b2('0x15'),auth[_0xf7b2('0x9')](),controller[_0xf7b2('0x16')]);router[_0xf7b2('0x17')](_0xf7b2('0xb'),auth['isAuthenticated'](),controller[_0xf7b2('0x18')]);router[_0xf7b2('0x17')](_0xf7b2('0xc'),auth[_0xf7b2('0x9')](),controller['addAnswer']);router[_0xf7b2('0x17')]('/',auth[_0xf7b2('0x9')](),controller['create']);router[_0xf7b2('0x17')](_0xf7b2('0xe'),auth[_0xf7b2('0x9')](),controller[_0xf7b2('0x19')]);router[_0xf7b2('0x17')]('/:id/out_servers',auth[_0xf7b2('0x9')](),controller[_0xf7b2('0x1a')]);router[_0xf7b2('0x17')]('/:id/interactions',auth[_0xf7b2('0x9')](),controller['addInteraction']);router[_0xf7b2('0x17')]('/:id/applications',auth[_0xf7b2('0x9')](),controller[_0xf7b2('0x1b')]);router[_0xf7b2('0x17')](_0xf7b2('0x1c'),auth['isAuthenticated'](),controller['send']);router['post'](_0xf7b2('0x15'),auth['isAuthenticated'](),controller[_0xf7b2('0x1d')]);router[_0xf7b2('0x1e')](_0xf7b2('0x1f'),auth[_0xf7b2('0x9')](),controller[_0xf7b2('0x20')]);router['delete'](_0xf7b2('0xb'),auth['isAuthenticated'](),controller[_0xf7b2('0x21')]);router[_0xf7b2('0x22')](_0xf7b2('0xc'),auth[_0xf7b2('0x9')](),controller['removeAnswers']);router[_0xf7b2('0x22')]('/:id/in_servers',auth[_0xf7b2('0x9')](),controller[_0xf7b2('0x23')]);router['delete'](_0xf7b2('0xf'),auth[_0xf7b2('0x9')](),controller[_0xf7b2('0x24')]);router[_0xf7b2('0x22')]('/:id',auth[_0xf7b2('0x9')](),controller[_0xf7b2('0x25')]);router[_0xf7b2('0x22')](_0xf7b2('0x15'),auth['isAuthenticated'](),controller[_0xf7b2('0x26')]);module[_0xf7b2('0x27')]=router;