Built motion from commit (unavailable).|2.5.6
[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 _0xed01=['exports','define','Migration','migrations','../../config/logger','api','moment','bluebird','request-promise','path','rimraf','./migration.attributes'];(function(_0x2bf8dd,_0x466e7b){var _0x2c5b14=function(_0x2ce285){while(--_0x2ce285){_0x2bf8dd['push'](_0x2bf8dd['shift']());}};_0x2c5b14(++_0x466e7b);}(_0xed01,0xd0));var _0x1ed0=function(_0x4be3f3,_0x20efd7){_0x4be3f3=_0x4be3f3-0x0;var _0x5278b3=_0xed01[_0x4be3f3];return _0x5278b3;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0x1ed0('0x0'))(_0x1ed0('0x1'));var moment=require(_0x1ed0('0x2'));var BPromise=require(_0x1ed0('0x3'));var rp=require(_0x1ed0('0x4'));var fs=require('fs');var path=require(_0x1ed0('0x5'));var rimraf=require(_0x1ed0('0x6'));var config=require('../../config/environment');var attributes=require(_0x1ed0('0x7'));module[_0x1ed0('0x8')]=function(_0x24d73b,_0x6b3eea){return _0x24d73b[_0x1ed0('0x9')](_0x1ed0('0xa'),attributes,{'tableName':_0x1ed0('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};