Built motion from commit (unavailable).|2.5.7
[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 _0x9c48=['TemplateId','Imap','MailServerOut','Smtp','getMailAccount','notify','NotifyMailAccount','../client','getMailAccounts','Request','name','service','email','ListId'];(function(_0x321bb2,_0x202794){var _0x9c12ed=function(_0x263dd3){while(--_0x263dd3){_0x321bb2['push'](_0x321bb2['shift']());}};_0x9c12ed(++_0x202794);}(_0x9c48,0xa1));var _0x89c4=function(_0x23f81d,_0x74a4c5){_0x23f81d=_0x23f81d-0x0;var _0x244b49=_0x9c48[_0x23f81d];return _0x244b49;};'use strict';var client=require(_0x89c4('0x0'));exports[_0x89c4('0x1')]=function(){return function(){return client[_0x89c4('0x2')]('GetMailAccount',{'options':{'attributes':['id',_0x89c4('0x3'),_0x89c4('0x4'),_0x89c4('0x5'),'active','key',_0x89c4('0x6'),_0x89c4('0x7')],'raw':![],'include':[{'model':'MailServerIn','as':_0x89c4('0x8')},{'model':_0x89c4('0x9'),'as':_0x89c4('0xa')}]},'log':_0x89c4('0xb')});};};exports[_0x89c4('0xc')]=function(_0x7faf5,_0x26ab92){return client[_0x89c4('0x2')](_0x89c4('0xd'),{'account':{'id':_0x7faf5},'body':_0x26ab92,'log':_0x89c4('0xd')});};