7445e683a5639e0de55a2fa7127ee69374999a70
[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 _0x7c9d=['migrations','lodash','../../config/logger','api','moment','bluebird','request-promise','path','rimraf','../../config/environment','./migration.attributes','exports','Migration'];(function(_0x4a8bcb,_0xff142){var _0x1a0d22=function(_0x4524ee){while(--_0x4524ee){_0x4a8bcb['push'](_0x4a8bcb['shift']());}};_0x1a0d22(++_0xff142);}(_0x7c9d,0xc4));var _0xd7c9=function(_0x1565f6,_0x2e0a16){_0x1565f6=_0x1565f6-0x0;var _0xc38c3e=_0x7c9d[_0x1565f6];return _0xc38c3e;};'use strict';var _=require(_0xd7c9('0x0'));var util=require('util');var logger=require(_0xd7c9('0x1'))(_0xd7c9('0x2'));var moment=require(_0xd7c9('0x3'));var BPromise=require(_0xd7c9('0x4'));var rp=require(_0xd7c9('0x5'));var fs=require('fs');var path=require(_0xd7c9('0x6'));var rimraf=require(_0xd7c9('0x7'));var config=require(_0xd7c9('0x8'));var attributes=require(_0xd7c9('0x9'));module[_0xd7c9('0xa')]=function(_0x3f55ce,_0x47b6d4){return _0x3f55ce['define'](_0xd7c9('0xb'),attributes,{'tableName':_0xd7c9('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};