8613c86f416552c9fe23bb934c9d0617fca62709
[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 _0xf0d4=['path','rimraf','../../config/environment','./migration.attributes','exports','define','migrations','lodash','util','../../config/logger','api','moment','bluebird','request-promise'];(function(_0x597d5e,_0x358977){var _0x37a12a=function(_0x619ea9){while(--_0x619ea9){_0x597d5e['push'](_0x597d5e['shift']());}};_0x37a12a(++_0x358977);}(_0xf0d4,0x18f));var _0x4f0d=function(_0x399338,_0x11496b){_0x399338=_0x399338-0x0;var _0x3c4485=_0xf0d4[_0x399338];return _0x3c4485;};'use strict';var _=require(_0x4f0d('0x0'));var util=require(_0x4f0d('0x1'));var logger=require(_0x4f0d('0x2'))(_0x4f0d('0x3'));var moment=require(_0x4f0d('0x4'));var BPromise=require(_0x4f0d('0x5'));var rp=require(_0x4f0d('0x6'));var fs=require('fs');var path=require(_0x4f0d('0x7'));var rimraf=require(_0x4f0d('0x8'));var config=require(_0x4f0d('0x9'));var attributes=require(_0x4f0d('0xa'));module[_0x4f0d('0xb')]=function(_0x7b4faa,_0x4c94d3){return _0x7b4faa[_0x4f0d('0xc')]('Migration',attributes,{'tableName':_0x4f0d('0xd'),'paranoid':![],'indexes':[],'timestamps':!![]});};