170647a756239111273a061e7b98110b4878d7f3
[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 _0xdf1d=['./migration.attributes','exports','define','Migration','util','api','moment','bluebird','request-promise','path','rimraf'];(function(_0x46bed2,_0x375ef9){var _0x29f329=function(_0x5f4793){while(--_0x5f4793){_0x46bed2['push'](_0x46bed2['shift']());}};_0x29f329(++_0x375ef9);}(_0xdf1d,0x101));var _0xddf1=function(_0x3ff085,_0x27c92e){_0x3ff085=_0x3ff085-0x0;var _0x2b68c3=_0xdf1d[_0x3ff085];return _0x2b68c3;};'use strict';var _=require('lodash');var util=require(_0xddf1('0x0'));var logger=require('../../config/logger')(_0xddf1('0x1'));var moment=require(_0xddf1('0x2'));var BPromise=require(_0xddf1('0x3'));var rp=require(_0xddf1('0x4'));var fs=require('fs');var path=require(_0xddf1('0x5'));var rimraf=require(_0xddf1('0x6'));var config=require('../../config/environment');var attributes=require(_0xddf1('0x7'));module[_0xddf1('0x8')]=function(_0xdcdba9,_0x46a3e0){return _0xdcdba9[_0xddf1('0x9')](_0xddf1('0xa'),attributes,{'tableName':'migrations','paranoid':![],'indexes':[],'timestamps':!![]});};