Built motion from commit b0a9a629.|2.6.33
[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 _0xac6a=['Smtp','getMailAccount','notify','NotifyMailAccount','../client','getMailAccounts','Request','GetMailAccount','name','service','active','key','ListId','TemplateId','MailServerIn','Imap','CloudProvider','type','data5'];(function(_0x879e31,_0x139d02){var _0x3467e8=function(_0x544fc6){while(--_0x544fc6){_0x879e31['push'](_0x879e31['shift']());}};_0x3467e8(++_0x139d02);}(_0xac6a,0xc2));var _0xaac6=function(_0x51ea27,_0xd44107){_0x51ea27=_0x51ea27-0x0;var _0x5da7bd=_0xac6a[_0x51ea27];return _0x5da7bd;};'use strict';var client=require(_0xaac6('0x0'));exports[_0xaac6('0x1')]=function(){return function(){return client[_0xaac6('0x2')](_0xaac6('0x3'),{'options':{'attributes':['id',_0xaac6('0x4'),'provider',_0xaac6('0x5'),'email',_0xaac6('0x6'),_0xaac6('0x7'),_0xaac6('0x8'),_0xaac6('0x9')],'raw':![],'include':[{'model':_0xaac6('0xa'),'as':_0xaac6('0xb'),'include':[{'model':_0xaac6('0xc'),'attributes':['id',_0xaac6('0x4'),_0xaac6('0x5'),_0xaac6('0xd'),_0xaac6('0xe')],'as':_0xaac6('0xc')}]},{'model':'MailServerOut','as':_0xaac6('0xf'),'include':[{'model':_0xaac6('0xc'),'attributes':['id',_0xaac6('0x4'),_0xaac6('0x5'),_0xaac6('0xd'),_0xaac6('0xe')],'as':'CloudProvider'}]}]},'log':_0xaac6('0x10')});};};exports[_0xaac6('0x11')]=function(_0x4705dc,_0x1156d7){return client[_0xaac6('0x2')]('NotifyMailAccount',{'account':{'id':_0x4705dc},'body':_0x1156d7,'log':_0xaac6('0x12')});};