Built motion from commit 43538d75.|2.5.35
[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 _0x0189=['MailServerOut','Smtp','getMailAccount','NotifyMailAccount','../client','getMailAccounts','Request','GetMailAccount','name','service','email','active','ListId','MailServerIn','Imap'];(function(_0x422be2,_0x1c439e){var _0x1b820e=function(_0x513cc8){while(--_0x513cc8){_0x422be2['push'](_0x422be2['shift']());}};_0x1b820e(++_0x1c439e);}(_0x0189,0x1a8));var _0x9018=function(_0x103d8e,_0x50afa2){_0x103d8e=_0x103d8e-0x0;var _0x40f392=_0x0189[_0x103d8e];return _0x40f392;};'use strict';var client=require(_0x9018('0x0'));exports[_0x9018('0x1')]=function(){return function(){return client[_0x9018('0x2')](_0x9018('0x3'),{'options':{'attributes':['id',_0x9018('0x4'),_0x9018('0x5'),_0x9018('0x6'),_0x9018('0x7'),'key',_0x9018('0x8'),'TemplateId'],'raw':![],'include':[{'model':_0x9018('0x9'),'as':_0x9018('0xa')},{'model':_0x9018('0xb'),'as':_0x9018('0xc')}]},'log':_0x9018('0xd')});};};exports['notify']=function(_0x4e9eee,_0x2b9756){return client[_0x9018('0x2')](_0x9018('0xe'),{'account':{'id':_0x4e9eee},'body':_0x2b9756,'log':_0x9018('0xe')});};