Built motion from commit 00bf23f6.|2.6.16
[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 _0x5c28=['request-promise','path','rimraf','./migration.attributes','exports','Migration','migrations','util','../../config/logger','api','moment','bluebird'];(function(_0x5a361d,_0x259dfc){var _0x24a315=function(_0xb5e44e){while(--_0xb5e44e){_0x5a361d['push'](_0x5a361d['shift']());}};_0x24a315(++_0x259dfc);}(_0x5c28,0x67));var _0x85c2=function(_0x35b253,_0x24d21c){_0x35b253=_0x35b253-0x0;var _0x2f97d2=_0x5c28[_0x35b253];return _0x2f97d2;};'use strict';var _=require('lodash');var util=require(_0x85c2('0x0'));var logger=require(_0x85c2('0x1'))(_0x85c2('0x2'));var moment=require(_0x85c2('0x3'));var BPromise=require(_0x85c2('0x4'));var rp=require(_0x85c2('0x5'));var fs=require('fs');var path=require(_0x85c2('0x6'));var rimraf=require(_0x85c2('0x7'));var config=require('../../config/environment');var attributes=require(_0x85c2('0x8'));module[_0x85c2('0x9')]=function(_0x1afafc,_0x5abc34){return _0x1afafc['define'](_0x85c2('0xa'),attributes,{'tableName':_0x85c2('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};