Built motion from commit 616d3211.|2.6.4
[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 _0x39df=['path','rimraf','../../config/environment','exports','define','migrations','lodash','../../config/logger','api','moment','bluebird','request-promise'];(function(_0x5479f5,_0x445bac){var _0x492150=function(_0x376cf3){while(--_0x376cf3){_0x5479f5['push'](_0x5479f5['shift']());}};_0x492150(++_0x445bac);}(_0x39df,0xae));var _0xf39d=function(_0x167cc1,_0x56ef5a){_0x167cc1=_0x167cc1-0x0;var _0x10bc4b=_0x39df[_0x167cc1];return _0x10bc4b;};'use strict';var _=require(_0xf39d('0x0'));var util=require('util');var logger=require(_0xf39d('0x1'))(_0xf39d('0x2'));var moment=require(_0xf39d('0x3'));var BPromise=require(_0xf39d('0x4'));var rp=require(_0xf39d('0x5'));var fs=require('fs');var path=require(_0xf39d('0x6'));var rimraf=require(_0xf39d('0x7'));var config=require(_0xf39d('0x8'));var attributes=require('./migration.attributes');module[_0xf39d('0x9')]=function(_0x481e96,_0x3f9308){return _0x481e96[_0xf39d('0xa')]('Migration',attributes,{'tableName':_0xf39d('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};