3a7e7365bddd2f3e44959e2d8d39a12b734285e2
[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 _0x6657=['ListId','TemplateId','MailServerIn','Imap','MailServerOut','Smtp','notify','NotifyMailAccount','../client','Request','GetMailAccount','name','service','active','key'];(function(_0x4edb1a,_0x57e008){var _0x311dd8=function(_0x1d9442){while(--_0x1d9442){_0x4edb1a['push'](_0x4edb1a['shift']());}};_0x311dd8(++_0x57e008);}(_0x6657,0x17f));var _0x7665=function(_0x28669c,_0x1f62c4){_0x28669c=_0x28669c-0x0;var _0x4a3af6=_0x6657[_0x28669c];return _0x4a3af6;};'use strict';var client=require(_0x7665('0x0'));exports['getMailAccounts']=function(){return function(){return client[_0x7665('0x1')](_0x7665('0x2'),{'options':{'attributes':['id',_0x7665('0x3'),_0x7665('0x4'),'email',_0x7665('0x5'),_0x7665('0x6'),_0x7665('0x7'),_0x7665('0x8')],'raw':![],'include':[{'model':_0x7665('0x9'),'as':_0x7665('0xa')},{'model':_0x7665('0xb'),'as':_0x7665('0xc')}]},'log':'getMailAccount'});};};exports[_0x7665('0xd')]=function(_0x464ec1,_0x24e6aa){return client[_0x7665('0x1')](_0x7665('0xe'),{'account':{'id':_0x464ec1},'body':_0x24e6aa,'log':_0x7665('0xe')});};