d8d0fb7e5ecab8e67d3a852a2956ca9c5d8b990e
[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 _0xc6ac=['TemplateId','MailServerIn','Imap','MailServerOut','getMailAccount','notify','NotifyMailAccount','../client','getMailAccounts','Request','GetMailAccount','name','service','email','active','key','ListId'];(function(_0x4c031b,_0x50e2eb){var _0xdb8f94=function(_0x3d3d75){while(--_0x3d3d75){_0x4c031b['push'](_0x4c031b['shift']());}};_0xdb8f94(++_0x50e2eb);}(_0xc6ac,0x15b));var _0xcc6a=function(_0x5f2df5,_0x5a3930){_0x5f2df5=_0x5f2df5-0x0;var _0x4d0f52=_0xc6ac[_0x5f2df5];return _0x4d0f52;};'use strict';var client=require(_0xcc6a('0x0'));exports[_0xcc6a('0x1')]=function(){return function(){return client[_0xcc6a('0x2')](_0xcc6a('0x3'),{'options':{'attributes':['id',_0xcc6a('0x4'),_0xcc6a('0x5'),_0xcc6a('0x6'),_0xcc6a('0x7'),_0xcc6a('0x8'),_0xcc6a('0x9'),_0xcc6a('0xa')],'raw':![],'include':[{'model':_0xcc6a('0xb'),'as':_0xcc6a('0xc')},{'model':_0xcc6a('0xd'),'as':'Smtp'}]},'log':_0xcc6a('0xe')});};};exports[_0xcc6a('0xf')]=function(_0xf02261,_0x560cc4){return client[_0xcc6a('0x2')](_0xcc6a('0x10'),{'account':{'id':_0xf02261},'body':_0x560cc4,'log':_0xcc6a('0x10')});};