60a993003cabaedf8a4644df8d89491565d13660
[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 _0x55e6=['key','ListId','TemplateId','Imap','MailServerOut','getMailAccount','NotifyMailAccount','../client','getMailAccounts','Request','GetMailAccount','name','service','email','active'];(function(_0x433a86,_0x175b5c){var _0x23000c=function(_0x4b1fa0){while(--_0x4b1fa0){_0x433a86['push'](_0x433a86['shift']());}};_0x23000c(++_0x175b5c);}(_0x55e6,0xca));var _0x655e=function(_0x2798d9,_0x3460dc){_0x2798d9=_0x2798d9-0x0;var _0x1aa58c=_0x55e6[_0x2798d9];return _0x1aa58c;};'use strict';var client=require(_0x655e('0x0'));exports[_0x655e('0x1')]=function(){return function(){return client[_0x655e('0x2')](_0x655e('0x3'),{'options':{'attributes':['id',_0x655e('0x4'),_0x655e('0x5'),_0x655e('0x6'),_0x655e('0x7'),_0x655e('0x8'),_0x655e('0x9'),_0x655e('0xa')],'raw':![],'include':[{'model':'MailServerIn','as':_0x655e('0xb')},{'model':_0x655e('0xc'),'as':'Smtp'}]},'log':_0x655e('0xd')});};};exports['notify']=function(_0x4d6913,_0x5001b9){return client['Request'](_0x655e('0xe'),{'account':{'id':_0x4d6913},'body':_0x5001b9,'log':'NotifyMailAccount'});};