50e701b54fa16f85fcf9e8a708f8508b4e5add58
[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 _0xa737=['./migration.attributes','exports','define','Migration','migrations','lodash','util','../../config/logger','api','moment','request-promise','path','rimraf','../../config/environment'];(function(_0x3064e7,_0x34edba){var _0x26038e=function(_0x35336c){while(--_0x35336c){_0x3064e7['push'](_0x3064e7['shift']());}};_0x26038e(++_0x34edba);}(_0xa737,0x1d3));var _0x7a73=function(_0x20a584,_0xe384a5){_0x20a584=_0x20a584-0x0;var _0x4b41a8=_0xa737[_0x20a584];return _0x4b41a8;};'use strict';var _=require(_0x7a73('0x0'));var util=require(_0x7a73('0x1'));var logger=require(_0x7a73('0x2'))(_0x7a73('0x3'));var moment=require(_0x7a73('0x4'));var BPromise=require('bluebird');var rp=require(_0x7a73('0x5'));var fs=require('fs');var path=require(_0x7a73('0x6'));var rimraf=require(_0x7a73('0x7'));var config=require(_0x7a73('0x8'));var attributes=require(_0x7a73('0x9'));module[_0x7a73('0xa')]=function(_0x15b22b,_0x26f91b){return _0x15b22b[_0x7a73('0xb')](_0x7a73('0xc'),attributes,{'tableName':_0x7a73('0xd'),'paranoid':![],'indexes':[],'timestamps':!![]});};