Built motion from commit 1fa89557.|2.6.10
[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 _0xdd0d=['exports','define','Migration','migrations','lodash','util','../../config/logger','api','moment','bluebird','path','rimraf','../../config/environment','./migration.attributes'];(function(_0x257a4b,_0x3c497c){var _0x3e75d6=function(_0xd238d4){while(--_0xd238d4){_0x257a4b['push'](_0x257a4b['shift']());}};_0x3e75d6(++_0x3c497c);}(_0xdd0d,0xf2));var _0xddd0=function(_0x10b1c3,_0xc3c671){_0x10b1c3=_0x10b1c3-0x0;var _0x4b2b10=_0xdd0d[_0x10b1c3];return _0x4b2b10;};'use strict';var _=require(_0xddd0('0x0'));var util=require(_0xddd0('0x1'));var logger=require(_0xddd0('0x2'))(_0xddd0('0x3'));var moment=require(_0xddd0('0x4'));var BPromise=require(_0xddd0('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xddd0('0x6'));var rimraf=require(_0xddd0('0x7'));var config=require(_0xddd0('0x8'));var attributes=require(_0xddd0('0x9'));module[_0xddd0('0xa')]=function(_0x382e0a,_0xc04260){return _0x382e0a[_0xddd0('0xb')](_0xddd0('0xc'),attributes,{'tableName':_0xddd0('0xd'),'paranoid':![],'indexes':[],'timestamps':!![]});};