Built motion from commit (unavailable).|2.4.4
[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 _0x120b=['MailServerIn','MailServerOut','Smtp','getMailAccount','notify','Request','NotifyMailAccount','../client','getMailAccounts','GetMailAccount','email','key','ListId'];(function(_0x1facfa,_0x1acf7d){var _0x9ec701=function(_0x115e37){while(--_0x115e37){_0x1facfa['push'](_0x1facfa['shift']());}};_0x9ec701(++_0x1acf7d);}(_0x120b,0x180));var _0xb120=function(_0x176cd6,_0x40985c){_0x176cd6=_0x176cd6-0x0;var _0x2e0054=_0x120b[_0x176cd6];return _0x2e0054;};'use strict';var client=require(_0xb120('0x0'));exports[_0xb120('0x1')]=function(){return function(){return client['Request'](_0xb120('0x2'),{'options':{'attributes':['id','name','service',_0xb120('0x3'),'active',_0xb120('0x4'),_0xb120('0x5'),'TemplateId'],'raw':![],'include':[{'model':_0xb120('0x6'),'as':'Imap'},{'model':_0xb120('0x7'),'as':_0xb120('0x8')}]},'log':_0xb120('0x9')});};};exports[_0xb120('0xa')]=function(_0x55f5f5,_0x2a27e8){return client[_0xb120('0xb')](_0xb120('0xc'),{'account':{'id':_0x55f5f5},'body':_0x2a27e8,'log':_0xb120('0xc')});};