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