3c181217dab3d06a18d60dd20ac01dc11eb14e6f
[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 _0x9ade=['key','ListId','MailServerIn','Smtp','getMailAccount','notify','NotifyMailAccount','../client','getMailAccounts','Request','GetMailAccount','name','service','email','active'];(function(_0x54af28,_0x1a0cc3){var _0x394eef=function(_0x5394db){while(--_0x5394db){_0x54af28['push'](_0x54af28['shift']());}};_0x394eef(++_0x1a0cc3);}(_0x9ade,0x8e));var _0xe9ad=function(_0x3655e5,_0x469eae){_0x3655e5=_0x3655e5-0x0;var _0x37dfac=_0x9ade[_0x3655e5];return _0x37dfac;};'use strict';var client=require(_0xe9ad('0x0'));exports[_0xe9ad('0x1')]=function(){return function(){return client[_0xe9ad('0x2')](_0xe9ad('0x3'),{'options':{'attributes':['id',_0xe9ad('0x4'),_0xe9ad('0x5'),_0xe9ad('0x6'),_0xe9ad('0x7'),_0xe9ad('0x8'),_0xe9ad('0x9'),'TemplateId'],'raw':![],'include':[{'model':_0xe9ad('0xa'),'as':'Imap'},{'model':'MailServerOut','as':_0xe9ad('0xb')}]},'log':_0xe9ad('0xc')});};};exports[_0xe9ad('0xd')]=function(_0xe8984c,_0x359a7c){return client[_0xe9ad('0x2')](_0xe9ad('0xe'),{'account':{'id':_0xe8984c},'body':_0x359a7c,'log':_0xe9ad('0xe')});};