2cd4ea8b96165ae2401bcdf7c1ca1d477fb946c5
[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 _0x1edd=['api','moment','bluebird','path','rimraf','./migration.attributes','exports','define','Migration','migrations','lodash','util','../../config/logger'];(function(_0x31ce3d,_0x581047){var _0x203d95=function(_0x9b9243){while(--_0x9b9243){_0x31ce3d['push'](_0x31ce3d['shift']());}};_0x203d95(++_0x581047);}(_0x1edd,0xcd));var _0xd1ed=function(_0x5d80de,_0x2cf15d){_0x5d80de=_0x5d80de-0x0;var _0x1c7556=_0x1edd[_0x5d80de];return _0x1c7556;};'use strict';var _=require(_0xd1ed('0x0'));var util=require(_0xd1ed('0x1'));var logger=require(_0xd1ed('0x2'))(_0xd1ed('0x3'));var moment=require(_0xd1ed('0x4'));var BPromise=require(_0xd1ed('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xd1ed('0x6'));var rimraf=require(_0xd1ed('0x7'));var config=require('../../config/environment');var attributes=require(_0xd1ed('0x8'));module[_0xd1ed('0x9')]=function(_0x59458c,_0x58283f){return _0x59458c[_0xd1ed('0xa')](_0xd1ed('0xb'),attributes,{'tableName':_0xd1ed('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};