Built motion from commit (unavailable).|2.5.21
[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 _0x792f=['path','rimraf','../../config/environment','exports','define','MailAccount','util','../../config/logger','api','moment','bluebird'];(function(_0x130719,_0x2a7018){var _0x159865=function(_0x3a4d06){while(--_0x3a4d06){_0x130719['push'](_0x130719['shift']());}};_0x159865(++_0x2a7018);}(_0x792f,0x10e));var _0xf792=function(_0x2bcd1f,_0x4f1972){_0x2bcd1f=_0x2bcd1f-0x0;var _0x2381ca=_0x792f[_0x2bcd1f];return _0x2381ca;};'use strict';var _=require('lodash');var util=require(_0xf792('0x0'));var logger=require(_0xf792('0x1'))(_0xf792('0x2'));var moment=require(_0xf792('0x3'));var BPromise=require(_0xf792('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xf792('0x5'));var rimraf=require(_0xf792('0x6'));var config=require(_0xf792('0x7'));var attributes=require('./mailAccount.attributes');module[_0xf792('0x8')]=function(_0x121909,_0x357d6e){return _0x121909[_0xf792('0x9')](_0xf792('0xa'),attributes,{'tableName':'mail_accounts','paranoid':![],'indexes':[],'timestamps':!![]});};