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