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