eeb1565cef15d34bd685d41df344fba1929f6d57
[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 _0x4e3f=['request-promise','rimraf','../../config/environment','./migration.attributes','exports','define','Migration','lodash','../../config/logger','moment','bluebird'];(function(_0x30ae5e,_0x391fc4){var _0x1f2e93=function(_0x60307d){while(--_0x60307d){_0x30ae5e['push'](_0x30ae5e['shift']());}};_0x1f2e93(++_0x391fc4);}(_0x4e3f,0xc2));var _0xf4e3=function(_0x44f1e5,_0x6eb7f3){_0x44f1e5=_0x44f1e5-0x0;var _0xc7eaf2=_0x4e3f[_0x44f1e5];return _0xc7eaf2;};'use strict';var _=require(_0xf4e3('0x0'));var util=require('util');var logger=require(_0xf4e3('0x1'))('api');var moment=require(_0xf4e3('0x2'));var BPromise=require(_0xf4e3('0x3'));var rp=require(_0xf4e3('0x4'));var fs=require('fs');var path=require('path');var rimraf=require(_0xf4e3('0x5'));var config=require(_0xf4e3('0x6'));var attributes=require(_0xf4e3('0x7'));module[_0xf4e3('0x8')]=function(_0x41bc5a,_0x4579b3){return _0x41bc5a[_0xf4e3('0x9')](_0xf4e3('0xa'),attributes,{'tableName':'migrations','paranoid':![],'indexes':[],'timestamps':!![]});};