b4c034177afb30dd4914a333ceaad4431d38b329
[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 _0xcde7=['MailServerIn','Imap','CloudProvider','service','data5','MailServerOut','Smtp','type','getMailAccount','notify','NotifyMailAccount','Request','GetMailAccount','name','email','key','ListId','TemplateId'];(function(_0x65a0db,_0x55c5a0){var _0x987620=function(_0x23d53f){while(--_0x23d53f){_0x65a0db['push'](_0x65a0db['shift']());}};_0x987620(++_0x55c5a0);}(_0xcde7,0x65));var _0x7cde=function(_0x5d6456,_0x58ecc7){_0x5d6456=_0x5d6456-0x0;var _0x4d66c1=_0xcde7[_0x5d6456];return _0x4d66c1;};'use strict';var client=require('../client');exports['getMailAccounts']=function(){return function(){return client[_0x7cde('0x0')](_0x7cde('0x1'),{'options':{'attributes':['id',_0x7cde('0x2'),'provider','service',_0x7cde('0x3'),'active',_0x7cde('0x4'),_0x7cde('0x5'),_0x7cde('0x6')],'raw':![],'include':[{'model':_0x7cde('0x7'),'as':_0x7cde('0x8'),'include':[{'model':_0x7cde('0x9'),'attributes':['id','name',_0x7cde('0xa'),'type',_0x7cde('0xb')],'as':_0x7cde('0x9')}]},{'model':_0x7cde('0xc'),'as':_0x7cde('0xd'),'include':[{'model':'CloudProvider','attributes':['id',_0x7cde('0x2'),_0x7cde('0xa'),_0x7cde('0xe'),_0x7cde('0xb')],'as':_0x7cde('0x9')}]}]},'log':_0x7cde('0xf')});};};exports[_0x7cde('0x10')]=function(_0x29a5f3,_0xbc825c){return client[_0x7cde('0x0')]('NotifyMailAccount',{'account':{'id':_0x29a5f3},'body':_0xbc825c,'log':_0x7cde('0x11')});};