1ec66a7ff98f6ef59d7bf362942562180e76c3d3
[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 _0x22ed=['Imap','CloudProvider','type','data5','getMailAccount','notify','NotifyMailAccount','../client','getMailAccounts','Request','GetMailAccount','name','provider','service','email','active','key','ListId','TemplateId'];(function(_0x33de83,_0x5cd14a){var _0x2dc227=function(_0x7a3560){while(--_0x7a3560){_0x33de83['push'](_0x33de83['shift']());}};_0x2dc227(++_0x5cd14a);}(_0x22ed,0x1a9));var _0xd22e=function(_0x3062cd,_0x15687c){_0x3062cd=_0x3062cd-0x0;var _0x596e6e=_0x22ed[_0x3062cd];return _0x596e6e;};'use strict';var client=require(_0xd22e('0x0'));exports[_0xd22e('0x1')]=function(){return function(){return client[_0xd22e('0x2')](_0xd22e('0x3'),{'options':{'attributes':['id',_0xd22e('0x4'),_0xd22e('0x5'),_0xd22e('0x6'),_0xd22e('0x7'),_0xd22e('0x8'),_0xd22e('0x9'),_0xd22e('0xa'),_0xd22e('0xb')],'raw':![],'include':[{'model':'MailServerIn','as':_0xd22e('0xc'),'include':[{'model':_0xd22e('0xd'),'attributes':['id','name',_0xd22e('0x6'),_0xd22e('0xe'),'data5'],'as':_0xd22e('0xd')}]},{'model':'MailServerOut','as':'Smtp','include':[{'model':_0xd22e('0xd'),'attributes':['id','name','service','type',_0xd22e('0xf')],'as':_0xd22e('0xd')}]}]},'log':_0xd22e('0x10')});};};exports[_0xd22e('0x11')]=function(_0x4d9430,_0x34a91d){return client[_0xd22e('0x2')](_0xd22e('0x12'),{'account':{'id':_0x4d9430},'body':_0x34a91d,'log':_0xd22e('0x12')});};