a7602a0d7a6d4cc6eb6310d450c7dce5b0429eb5
[motion2.git] / server / api / migration / migration.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 _0xe7a0=['define','Migration','migrations','lodash','util','../../config/logger','api','moment','bluebird','request-promise','path','rimraf','./migration.attributes'];(function(_0x52db10,_0x40fe24){var _0x5a3a56=function(_0x382712){while(--_0x382712){_0x52db10['push'](_0x52db10['shift']());}};_0x5a3a56(++_0x40fe24);}(_0xe7a0,0x12e));var _0x0e7a=function(_0x5e61ba,_0x293b51){_0x5e61ba=_0x5e61ba-0x0;var _0x205631=_0xe7a0[_0x5e61ba];return _0x205631;};'use strict';var _=require(_0x0e7a('0x0'));var util=require(_0x0e7a('0x1'));var logger=require(_0x0e7a('0x2'))(_0x0e7a('0x3'));var moment=require(_0x0e7a('0x4'));var BPromise=require(_0x0e7a('0x5'));var rp=require(_0x0e7a('0x6'));var fs=require('fs');var path=require(_0x0e7a('0x7'));var rimraf=require(_0x0e7a('0x8'));var config=require('../../config/environment');var attributes=require(_0x0e7a('0x9'));module['exports']=function(_0x5b62f7,_0x400ef4){return _0x5b62f7[_0x0e7a('0xa')](_0x0e7a('0xb'),attributes,{'tableName':_0x0e7a('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};