Built motion from commit da24aabd.|2.6.20
[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 _0x9c63=['MailServerIn','Imap','CloudProvider','type','data5','MailServerOut','Smtp','getMailAccount','notify','../client','getMailAccounts','Request','GetMailAccount','name','service','email','ListId','TemplateId'];(function(_0x5a3458,_0x1f6268){var _0xc94d5d=function(_0x195d47){while(--_0x195d47){_0x5a3458['push'](_0x5a3458['shift']());}};_0xc94d5d(++_0x1f6268);}(_0x9c63,0x1a7));var _0x39c6=function(_0x5b1354,_0x57840c){_0x5b1354=_0x5b1354-0x0;var _0x10ed24=_0x9c63[_0x5b1354];return _0x10ed24;};'use strict';var client=require(_0x39c6('0x0'));exports[_0x39c6('0x1')]=function(){return function(){return client[_0x39c6('0x2')](_0x39c6('0x3'),{'options':{'attributes':['id',_0x39c6('0x4'),'provider',_0x39c6('0x5'),_0x39c6('0x6'),'active','key',_0x39c6('0x7'),_0x39c6('0x8')],'raw':![],'include':[{'model':_0x39c6('0x9'),'as':_0x39c6('0xa'),'include':[{'model':_0x39c6('0xb'),'attributes':['id',_0x39c6('0x4'),'service',_0x39c6('0xc'),_0x39c6('0xd')],'as':_0x39c6('0xb')}]},{'model':_0x39c6('0xe'),'as':_0x39c6('0xf'),'include':[{'model':'CloudProvider','attributes':['id',_0x39c6('0x4'),'service',_0x39c6('0xc'),'data5'],'as':_0x39c6('0xb')}]}]},'log':_0x39c6('0x10')});};};exports[_0x39c6('0x11')]=function(_0x231669,_0x47f33b){return client[_0x39c6('0x2')]('NotifyMailAccount',{'account':{'id':_0x231669},'body':_0x47f33b,'log':'NotifyMailAccount'});};