06f53b54f5c7022fa795dab080d803813e80d223
[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 _0x2678=['MailServerIn','Imap','CloudProvider','name','service','type','data5','MailServerOut','Smtp','notify','NotifyMailAccount','getMailAccounts','Request','GetMailAccount','email','active','key','TemplateId'];(function(_0xb6160,_0x206fdb){var _0xce706e=function(_0x581daa){while(--_0x581daa){_0xb6160['push'](_0xb6160['shift']());}};_0xce706e(++_0x206fdb);}(_0x2678,0x1bb));var _0x8267=function(_0x819e56,_0x34fdd4){_0x819e56=_0x819e56-0x0;var _0x4e78dd=_0x2678[_0x819e56];return _0x4e78dd;};'use strict';var client=require('../client');exports[_0x8267('0x0')]=function(){return function(){return client[_0x8267('0x1')](_0x8267('0x2'),{'options':{'attributes':['id','name','provider','service',_0x8267('0x3'),_0x8267('0x4'),_0x8267('0x5'),'ListId',_0x8267('0x6')],'raw':![],'include':[{'model':_0x8267('0x7'),'as':_0x8267('0x8'),'include':[{'model':_0x8267('0x9'),'attributes':['id',_0x8267('0xa'),_0x8267('0xb'),_0x8267('0xc'),_0x8267('0xd')],'as':'CloudProvider'}]},{'model':_0x8267('0xe'),'as':_0x8267('0xf'),'include':[{'model':'CloudProvider','attributes':['id',_0x8267('0xa'),_0x8267('0xb'),_0x8267('0xc'),_0x8267('0xd')],'as':_0x8267('0x9')}]}]},'log':'getMailAccount'});};};exports[_0x8267('0x10')]=function(_0x122cb6,_0x2d8da0){return client[_0x8267('0x1')](_0x8267('0x11'),{'account':{'id':_0x122cb6},'body':_0x2d8da0,'log':_0x8267('0x11')});};