Built motion from commit 87cd5f02.|2.5.48
[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 _0xe225=['Imap','CloudProvider','name','type','data5','MailServerOut','Smtp','getMailAccount','notify','NotifyMailAccount','getMailAccounts','Request','service','active','MailServerIn'];(function(_0xad068a,_0x2aae6d){var _0x48b822=function(_0x2b0798){while(--_0x2b0798){_0xad068a['push'](_0xad068a['shift']());}};_0x48b822(++_0x2aae6d);}(_0xe225,0x1bd));var _0x5e22=function(_0xefc497,_0x297122){_0xefc497=_0xefc497-0x0;var _0x3c2f0d=_0xe225[_0xefc497];return _0x3c2f0d;};'use strict';var client=require('../client');exports[_0x5e22('0x0')]=function(){return function(){return client[_0x5e22('0x1')]('GetMailAccount',{'options':{'attributes':['id','name','provider',_0x5e22('0x2'),'email',_0x5e22('0x3'),'key','ListId','TemplateId'],'raw':![],'include':[{'model':_0x5e22('0x4'),'as':_0x5e22('0x5'),'include':[{'model':_0x5e22('0x6'),'attributes':['id',_0x5e22('0x7'),_0x5e22('0x2'),_0x5e22('0x8'),_0x5e22('0x9')],'as':_0x5e22('0x6')}]},{'model':_0x5e22('0xa'),'as':_0x5e22('0xb'),'include':[{'model':_0x5e22('0x6'),'attributes':['id',_0x5e22('0x7'),'service',_0x5e22('0x8'),'data5'],'as':_0x5e22('0x6')}]}]},'log':_0x5e22('0xc')});};};exports[_0x5e22('0xd')]=function(_0x266c41,_0x5a817b){return client[_0x5e22('0x1')]('NotifyMailAccount',{'account':{'id':_0x266c41},'body':_0x5a817b,'log':_0x5e22('0xe')});};