57a995484ff40b27e32565b40375f08f996caa75
[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 _0xce08=['rimraf','../../config/environment','./migration.attributes','exports','Migration','migrations','lodash','../../config/logger','api','moment','bluebird','request-promise','path'];(function(_0x510ecb,_0x1a4075){var _0x43b1e3=function(_0x41fcf3){while(--_0x41fcf3){_0x510ecb['push'](_0x510ecb['shift']());}};_0x43b1e3(++_0x1a4075);}(_0xce08,0xd6));var _0x8ce0=function(_0xe0f2ee,_0x4cb3fd){_0xe0f2ee=_0xe0f2ee-0x0;var _0x1d9ac5=_0xce08[_0xe0f2ee];return _0x1d9ac5;};'use strict';var _=require(_0x8ce0('0x0'));var util=require('util');var logger=require(_0x8ce0('0x1'))(_0x8ce0('0x2'));var moment=require(_0x8ce0('0x3'));var BPromise=require(_0x8ce0('0x4'));var rp=require(_0x8ce0('0x5'));var fs=require('fs');var path=require(_0x8ce0('0x6'));var rimraf=require(_0x8ce0('0x7'));var config=require(_0x8ce0('0x8'));var attributes=require(_0x8ce0('0x9'));module[_0x8ce0('0xa')]=function(_0x6767a1,_0x1cdc7d){return _0x6767a1['define'](_0x8ce0('0xb'),attributes,{'tableName':_0x8ce0('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};