Built motion from commit 00bf23f6.|2.6.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 _0xea68=['Smtp','getMailAccount','notify','Request','NotifyMailAccount','name','provider','service','email','active','key','ListId','TemplateId','MailServerIn','Imap','type','data5','CloudProvider','MailServerOut'];(function(_0x167cc1,_0x56ef5a){var _0x10bc4b=function(_0xd6a255){while(--_0xd6a255){_0x167cc1['push'](_0x167cc1['shift']());}};_0x10bc4b(++_0x56ef5a);}(_0xea68,0x77));var _0x8ea6=function(_0x513c32,_0x3a04d0){_0x513c32=_0x513c32-0x0;var _0x51a57e=_0xea68[_0x513c32];return _0x51a57e;};'use strict';var client=require('../client');exports['getMailAccounts']=function(){return function(){return client['Request']('GetMailAccount',{'options':{'attributes':['id',_0x8ea6('0x0'),_0x8ea6('0x1'),_0x8ea6('0x2'),_0x8ea6('0x3'),_0x8ea6('0x4'),_0x8ea6('0x5'),_0x8ea6('0x6'),_0x8ea6('0x7')],'raw':![],'include':[{'model':_0x8ea6('0x8'),'as':_0x8ea6('0x9'),'include':[{'model':'CloudProvider','attributes':['id',_0x8ea6('0x0'),_0x8ea6('0x2'),_0x8ea6('0xa'),_0x8ea6('0xb')],'as':_0x8ea6('0xc')}]},{'model':_0x8ea6('0xd'),'as':_0x8ea6('0xe'),'include':[{'model':'CloudProvider','attributes':['id',_0x8ea6('0x0'),_0x8ea6('0x2'),_0x8ea6('0xa'),_0x8ea6('0xb')],'as':'CloudProvider'}]}]},'log':_0x8ea6('0xf')});};};exports[_0x8ea6('0x10')]=function(_0x3acf9a,_0x36ed15){return client[_0x8ea6('0x11')](_0x8ea6('0x12'),{'account':{'id':_0x3acf9a},'body':_0x36ed15,'log':_0x8ea6('0x12')});};