51bd6ece278d4e77077c3ea792256fde0e683bd1
[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 _0xb923=['MailServerIn','Imap','MailServerOut','Smtp','getMailAccount','NotifyMailAccount','../client','getMailAccounts','Request','name','service','ListId','TemplateId'];(function(_0x465028,_0x4570ac){var _0xb783d4=function(_0x5458c5){while(--_0x5458c5){_0x465028['push'](_0x465028['shift']());}};_0xb783d4(++_0x4570ac);}(_0xb923,0xa2));var _0x3b92=function(_0x23d784,_0x4c8941){_0x23d784=_0x23d784-0x0;var _0x2b1b4b=_0xb923[_0x23d784];return _0x2b1b4b;};'use strict';var client=require(_0x3b92('0x0'));exports[_0x3b92('0x1')]=function(){return function(){return client[_0x3b92('0x2')]('GetMailAccount',{'options':{'attributes':['id',_0x3b92('0x3'),_0x3b92('0x4'),'email','active','key',_0x3b92('0x5'),_0x3b92('0x6')],'raw':![],'include':[{'model':_0x3b92('0x7'),'as':_0x3b92('0x8')},{'model':_0x3b92('0x9'),'as':_0x3b92('0xa')}]},'log':_0x3b92('0xb')});};};exports['notify']=function(_0x511c10,_0x2aefa5){return client['Request'](_0x3b92('0xc'),{'account':{'id':_0x511c10},'body':_0x2aefa5,'log':_0x3b92('0xc')});};