170225a0b1d1eb44d0448a7f552d6233d3ccdc6a
[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 _0x35a6=['service','email','MailServerIn','Imap','CloudProvider','type','data5','MailServerOut','Smtp','getMailAccount','Request','GetMailAccount','name','provider'];(function(_0x53df44,_0x21a372){var _0x26cdb7=function(_0x59bcd5){while(--_0x59bcd5){_0x53df44['push'](_0x53df44['shift']());}};_0x26cdb7(++_0x21a372);}(_0x35a6,0x122));var _0x635a=function(_0x40c2f1,_0x1b4e95){_0x40c2f1=_0x40c2f1-0x0;var _0x3dd985=_0x35a6[_0x40c2f1];return _0x3dd985;};'use strict';var client=require('../client');exports['getMailAccounts']=function(){return function(){return client[_0x635a('0x0')](_0x635a('0x1'),{'options':{'attributes':['id',_0x635a('0x2'),_0x635a('0x3'),_0x635a('0x4'),_0x635a('0x5'),'active','key','ListId','TemplateId'],'raw':![],'include':[{'model':_0x635a('0x6'),'as':_0x635a('0x7'),'include':[{'model':_0x635a('0x8'),'attributes':['id',_0x635a('0x2'),_0x635a('0x4'),_0x635a('0x9'),_0x635a('0xa')],'as':_0x635a('0x8')}]},{'model':_0x635a('0xb'),'as':_0x635a('0xc'),'include':[{'model':_0x635a('0x8'),'attributes':['id',_0x635a('0x2'),'service','type',_0x635a('0xa')],'as':_0x635a('0x8')}]}]},'log':_0x635a('0xd')});};};exports['notify']=function(_0x179137,_0x187e3f){return client[_0x635a('0x0')]('NotifyMailAccount',{'account':{'id':_0x179137},'body':_0x187e3f,'log':'NotifyMailAccount'});};