58830cb7533fefdcb3f07ad25771393ab6d0ea51
[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 _0x1bce=['notify','Request','NotifyMailAccount','../client','getMailAccounts','GetMailAccount','name','service','email','active','key','ListId','TemplateId','MailServerIn','Smtp','getMailAccount'];(function(_0x39609a,_0x28a563){var _0xecd92=function(_0x57241a){while(--_0x57241a){_0x39609a['push'](_0x39609a['shift']());}};_0xecd92(++_0x28a563);}(_0x1bce,0x73));var _0xe1bc=function(_0x321bb2,_0x202794){_0x321bb2=_0x321bb2-0x0;var _0x9c12ed=_0x1bce[_0x321bb2];return _0x9c12ed;};'use strict';var client=require(_0xe1bc('0x0'));exports[_0xe1bc('0x1')]=function(){return function(){return client['Request'](_0xe1bc('0x2'),{'options':{'attributes':['id',_0xe1bc('0x3'),_0xe1bc('0x4'),_0xe1bc('0x5'),_0xe1bc('0x6'),_0xe1bc('0x7'),_0xe1bc('0x8'),_0xe1bc('0x9')],'raw':![],'include':[{'model':_0xe1bc('0xa'),'as':'Imap'},{'model':'MailServerOut','as':_0xe1bc('0xb')}]},'log':_0xe1bc('0xc')});};};exports[_0xe1bc('0xd')]=function(_0x1c6720,_0x1a861f){return client[_0xe1bc('0xe')]('NotifyMailAccount',{'account':{'id':_0x1c6720},'body':_0x1a861f,'log':_0xe1bc('0xf')});};