1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0xd9c8=['GetMailAccount','name','service','email','active','key','ListId','MailServerOut','Smtp','getMailAccount','Request','NotifyMailAccount','../client','getMailAccounts'];(function(_0x4de958,_0x5b760e){var _0x6c13ff=function(_0x4a744e){while(--_0x4a744e){_0x4de958['push'](_0x4de958['shift']());}};_0x6c13ff(++_0x5b760e);}(_0xd9c8,0x15c));var _0x8d9c=function(_0x36eaaa,_0x326732){_0x36eaaa=_0x36eaaa-0x0;var _0x461349=_0xd9c8[_0x36eaaa];return _0x461349;};'use strict';var client=require(_0x8d9c('0x0'));exports[_0x8d9c('0x1')]=function(){return function(){return client['Request'](_0x8d9c('0x2'),{'options':{'attributes':['id',_0x8d9c('0x3'),_0x8d9c('0x4'),_0x8d9c('0x5'),_0x8d9c('0x6'),_0x8d9c('0x7'),_0x8d9c('0x8'),'TemplateId'],'raw':![],'include':[{'model':'MailServerIn','as':'Imap'},{'model':_0x8d9c('0x9'),'as':_0x8d9c('0xa')}]},'log':_0x8d9c('0xb')});};};exports['notify']=function(_0x3790f6,_0x3de357){return client[_0x8d9c('0xc')](_0x8d9c('0xd'),{'account':{'id':_0x3790f6},'body':_0x3de357,'log':_0x8d9c('0xd')});};