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