69427a6b22aa575cc679fc2597cb70b7b1a57b10
[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 _0x893e=['define','Migration','migrations','util','../../config/logger','api','moment','request-promise','path','rimraf','../../config/environment','./migration.attributes','exports'];(function(_0x5e79f1,_0xcb3d2d){var _0x14bae1=function(_0x237141){while(--_0x237141){_0x5e79f1['push'](_0x5e79f1['shift']());}};_0x14bae1(++_0xcb3d2d);}(_0x893e,0x1b0));var _0xe893=function(_0x384fc4,_0x1740d6){_0x384fc4=_0x384fc4-0x0;var _0x292817=_0x893e[_0x384fc4];return _0x292817;};'use strict';var _=require('lodash');var util=require(_0xe893('0x0'));var logger=require(_0xe893('0x1'))(_0xe893('0x2'));var moment=require(_0xe893('0x3'));var BPromise=require('bluebird');var rp=require(_0xe893('0x4'));var fs=require('fs');var path=require(_0xe893('0x5'));var rimraf=require(_0xe893('0x6'));var config=require(_0xe893('0x7'));var attributes=require(_0xe893('0x8'));module[_0xe893('0x9')]=function(_0x2e0636,_0x4f1d4a){return _0x2e0636[_0xe893('0xa')](_0xe893('0xb'),attributes,{'tableName':_0xe893('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};