62f1647903c7b296a5a22908eb4d8b6e0f8d50a2
[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 _0xdb31=['util','../../config/logger','api','moment','bluebird','rimraf','exports','define','Migration','migrations'];(function(_0x18abd2,_0x22d4b3){var _0x1dcad6=function(_0xcc08c4){while(--_0xcc08c4){_0x18abd2['push'](_0x18abd2['shift']());}};_0x1dcad6(++_0x22d4b3);}(_0xdb31,0x17c));var _0x1db3=function(_0x13ce0c,_0x3f2a0d){_0x13ce0c=_0x13ce0c-0x0;var _0x4388fb=_0xdb31[_0x13ce0c];return _0x4388fb;};'use strict';var _=require('lodash');var util=require(_0x1db3('0x0'));var logger=require(_0x1db3('0x1'))(_0x1db3('0x2'));var moment=require(_0x1db3('0x3'));var BPromise=require(_0x1db3('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0x1db3('0x5'));var config=require('../../config/environment');var attributes=require('./migration.attributes');module[_0x1db3('0x6')]=function(_0x25ed7f,_0x564872){return _0x25ed7f[_0x1db3('0x7')](_0x1db3('0x8'),attributes,{'tableName':_0x1db3('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};