Built motion from commit a679711e.|2.6.15
[motion2.git] / server / services / email / rpc / mailAccount.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 _0x5084=['notify','NotifyMailAccount','../client','getMailAccounts','Request','GetMailAccount','name','provider','service','email','active','key','ListId','TemplateId','MailServerIn','CloudProvider','type','Smtp','data5','getMailAccount'];(function(_0xa7963b,_0x376dc0){var _0x52c918=function(_0x46ba6e){while(--_0x46ba6e){_0xa7963b['push'](_0xa7963b['shift']());}};_0x52c918(++_0x376dc0);}(_0x5084,0xde));var _0x4508=function(_0x80cbd6,_0xedb5a0){_0x80cbd6=_0x80cbd6-0x0;var _0x48672f=_0x5084[_0x80cbd6];return _0x48672f;};'use strict';var client=require(_0x4508('0x0'));exports[_0x4508('0x1')]=function(){return function(){return client[_0x4508('0x2')](_0x4508('0x3'),{'options':{'attributes':['id',_0x4508('0x4'),_0x4508('0x5'),_0x4508('0x6'),_0x4508('0x7'),_0x4508('0x8'),_0x4508('0x9'),_0x4508('0xa'),_0x4508('0xb')],'raw':![],'include':[{'model':_0x4508('0xc'),'as':'Imap','include':[{'model':_0x4508('0xd'),'attributes':['id',_0x4508('0x4'),_0x4508('0x6'),_0x4508('0xe'),'data5'],'as':_0x4508('0xd')}]},{'model':'MailServerOut','as':_0x4508('0xf'),'include':[{'model':_0x4508('0xd'),'attributes':['id',_0x4508('0x4'),'service',_0x4508('0xe'),_0x4508('0x10')],'as':'CloudProvider'}]}]},'log':_0x4508('0x11')});};};exports[_0x4508('0x12')]=function(_0x22afae,_0x63f905){return client[_0x4508('0x2')](_0x4508('0x13'),{'account':{'id':_0x22afae},'body':_0x63f905,'log':_0x4508('0x13')});};