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 _0x4744=['ListId','Imap','CloudProvider','type','data5','Smtp','Request','NotifyMailAccount','../client','getMailAccounts','GetMailAccount','name','provider','service','email','active','key'];(function(_0x17e26e,_0x32408a){var _0x366c2b=function(_0x57a11f){while(--_0x57a11f){_0x17e26e['push'](_0x17e26e['shift']());}};_0x366c2b(++_0x32408a);}(_0x4744,0x107));var _0x4474=function(_0x32a388,_0x50a96a){_0x32a388=_0x32a388-0x0;var _0x1f57d4=_0x4744[_0x32a388];return _0x1f57d4;};'use strict';var client=require(_0x4474('0x0'));exports[_0x4474('0x1')]=function(){return function(){return client['Request'](_0x4474('0x2'),{'options':{'attributes':['id',_0x4474('0x3'),_0x4474('0x4'),_0x4474('0x5'),_0x4474('0x6'),_0x4474('0x7'),_0x4474('0x8'),_0x4474('0x9'),'TemplateId'],'raw':![],'include':[{'model':'MailServerIn','as':_0x4474('0xa'),'include':[{'model':_0x4474('0xb'),'attributes':['id',_0x4474('0x3'),_0x4474('0x5'),_0x4474('0xc'),_0x4474('0xd')],'as':_0x4474('0xb')}]},{'model':'MailServerOut','as':_0x4474('0xe'),'include':[{'model':_0x4474('0xb'),'attributes':['id',_0x4474('0x3'),_0x4474('0x5'),_0x4474('0xc'),_0x4474('0xd')],'as':_0x4474('0xb')}]}]},'log':'getMailAccount'});};};exports['notify']=function(_0x59c67a,_0x5f2783){return client[_0x4474('0xf')](_0x4474('0x10'),{'account':{'id':_0x59c67a},'body':_0x5f2783,'log':'NotifyMailAccount'});};