063ba7f5f07afd7b7cc6cb544a8e30a93e7ad656
[motion2.git] / server / api / mailAccount / mailAccount.model.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 _0x5ac2=['bluebird','path','../../config/environment','./mailAccount.attributes','exports','define','MailAccount','mail_accounts','lodash','util','../../config/logger','api','moment'];(function(_0x397e5f,_0x454c8f){var _0x5302b8=function(_0x1a29ef){while(--_0x1a29ef){_0x397e5f['push'](_0x397e5f['shift']());}};_0x5302b8(++_0x454c8f);}(_0x5ac2,0x1b5));var _0x25ac=function(_0x31bf53,_0x47bad8){_0x31bf53=_0x31bf53-0x0;var _0x5cf93c=_0x5ac2[_0x31bf53];return _0x5cf93c;};'use strict';var _=require(_0x25ac('0x0'));var util=require(_0x25ac('0x1'));var logger=require(_0x25ac('0x2'))(_0x25ac('0x3'));var moment=require(_0x25ac('0x4'));var BPromise=require(_0x25ac('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x25ac('0x6'));var rimraf=require('rimraf');var config=require(_0x25ac('0x7'));var attributes=require(_0x25ac('0x8'));module[_0x25ac('0x9')]=function(_0x19c2c9,_0x596947){return _0x19c2c9[_0x25ac('0xa')](_0x25ac('0xb'),attributes,{'tableName':_0x25ac('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};