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