d162bfcd6be5659ee68aaedc9a761dc9e467a4bf
[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 _0x58e6=['TemplateId','MailServerIn','Imap','MailServerOut','notify','NotifyMailAccount','../client','getMailAccounts','service','active','key','ListId'];(function(_0x20f3bc,_0x34c2fd){var _0x2e0502=function(_0x14dd1a){while(--_0x14dd1a){_0x20f3bc['push'](_0x20f3bc['shift']());}};_0x2e0502(++_0x34c2fd);}(_0x58e6,0x1c2));var _0x658e=function(_0x3b9923,_0x18e1e7){_0x3b9923=_0x3b9923-0x0;var _0x4077a1=_0x58e6[_0x3b9923];return _0x4077a1;};'use strict';var client=require(_0x658e('0x0'));exports[_0x658e('0x1')]=function(){return function(){return client['Request']('GetMailAccount',{'options':{'attributes':['id','name',_0x658e('0x2'),'email',_0x658e('0x3'),_0x658e('0x4'),_0x658e('0x5'),_0x658e('0x6')],'raw':![],'include':[{'model':_0x658e('0x7'),'as':_0x658e('0x8')},{'model':_0x658e('0x9'),'as':'Smtp'}]},'log':'getMailAccount'});};};exports[_0x658e('0xa')]=function(_0xa73acf,_0x1e2c26){return client['Request'](_0x658e('0xb'),{'account':{'id':_0xa73acf},'body':_0x1e2c26,'log':_0x658e('0xb')});};