e841a766b68c751c941eef28aa786d946112f117
[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 _0x2fc5=['moment','bluebird','path','rimraf','../../config/environment','exports','Migration','migrations','lodash','util','../../config/logger','api'];(function(_0x1bdfd8,_0x4d9ae3){var _0x488af1=function(_0x12f75d){while(--_0x12f75d){_0x1bdfd8['push'](_0x1bdfd8['shift']());}};_0x488af1(++_0x4d9ae3);}(_0x2fc5,0x128));var _0x52fc=function(_0x4cf98e,_0xba4b79){_0x4cf98e=_0x4cf98e-0x0;var _0x1623ac=_0x2fc5[_0x4cf98e];return _0x1623ac;};'use strict';var _=require(_0x52fc('0x0'));var util=require(_0x52fc('0x1'));var logger=require(_0x52fc('0x2'))(_0x52fc('0x3'));var moment=require(_0x52fc('0x4'));var BPromise=require(_0x52fc('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x52fc('0x6'));var rimraf=require(_0x52fc('0x7'));var config=require(_0x52fc('0x8'));var attributes=require('./migration.attributes');module[_0x52fc('0x9')]=function(_0x371ed1,_0x1a085f){return _0x371ed1['define'](_0x52fc('0xa'),attributes,{'tableName':_0x52fc('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};