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