c7f938b3aa50ac3cc28dafc11d52d47cdeb8867e
[motion2.git] / server / api / mailServerIn / mailServerIn.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 _0xf5a4=['path','rimraf','../../config/environment','./mailServerIn.attributes','exports','define','MailServerIn','mail_servers_in','lodash','../../config/logger','api','bluebird','request-promise'];(function(_0x4cf98e,_0xba4b79){var _0x1623ac=function(_0x459bc0){while(--_0x459bc0){_0x4cf98e['push'](_0x4cf98e['shift']());}};_0x1623ac(++_0xba4b79);}(_0xf5a4,0x174));var _0x4f5a=function(_0x15808b,_0x3d2a33){_0x15808b=_0x15808b-0x0;var _0x2036d0=_0xf5a4[_0x15808b];return _0x2036d0;};'use strict';var _=require(_0x4f5a('0x0'));var util=require('util');var logger=require(_0x4f5a('0x1'))(_0x4f5a('0x2'));var moment=require('moment');var BPromise=require(_0x4f5a('0x3'));var rp=require(_0x4f5a('0x4'));var fs=require('fs');var path=require(_0x4f5a('0x5'));var rimraf=require(_0x4f5a('0x6'));var config=require(_0x4f5a('0x7'));var attributes=require(_0x4f5a('0x8'));module[_0x4f5a('0x9')]=function(_0xf1d85e,_0x3f9eb5){return _0xf1d85e[_0x4f5a('0xa')](_0x4f5a('0xb'),attributes,{'tableName':_0x4f5a('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};