Built motion from commit (unavailable).|2.5.16
[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 _0xdf70=['MailServerOut','Smtp','notify','NotifyMailAccount','../client','getMailAccounts','Request','name','service','active','ListId','TemplateId','Imap'];(function(_0x56a7a4,_0x1f946d){var _0x16d9f6=function(_0x331162){while(--_0x331162){_0x56a7a4['push'](_0x56a7a4['shift']());}};_0x16d9f6(++_0x1f946d);}(_0xdf70,0x86));var _0x0df7=function(_0x356618,_0x3b2951){_0x356618=_0x356618-0x0;var _0x4db1f8=_0xdf70[_0x356618];return _0x4db1f8;};'use strict';var client=require(_0x0df7('0x0'));exports[_0x0df7('0x1')]=function(){return function(){return client[_0x0df7('0x2')]('GetMailAccount',{'options':{'attributes':['id',_0x0df7('0x3'),_0x0df7('0x4'),'email',_0x0df7('0x5'),'key',_0x0df7('0x6'),_0x0df7('0x7')],'raw':![],'include':[{'model':'MailServerIn','as':_0x0df7('0x8')},{'model':_0x0df7('0x9'),'as':_0x0df7('0xa')}]},'log':'getMailAccount'});};};exports[_0x0df7('0xb')]=function(_0x392337,_0x44c4fb){return client[_0x0df7('0x2')](_0x0df7('0xc'),{'account':{'id':_0x392337},'body':_0x44c4fb,'log':_0x0df7('0xc')});};