Built motion from commit f7863d46.|2.5.41
[motion2.git] / server / api / variable / variable.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 _0x1ce6=['util','../../config/logger','api','moment','bluebird','request-promise','path','rimraf','../../config/environment','exports','define','Variable','tools_variables','lodash'];(function(_0x5659f3,_0x306374){var _0x442f40=function(_0x367e5c){while(--_0x367e5c){_0x5659f3['push'](_0x5659f3['shift']());}};_0x442f40(++_0x306374);}(_0x1ce6,0x6f));var _0x61ce=function(_0x152bed,_0x4cabde){_0x152bed=_0x152bed-0x0;var _0x1fefa1=_0x1ce6[_0x152bed];return _0x1fefa1;};'use strict';var _=require(_0x61ce('0x0'));var util=require(_0x61ce('0x1'));var logger=require(_0x61ce('0x2'))(_0x61ce('0x3'));var moment=require(_0x61ce('0x4'));var BPromise=require(_0x61ce('0x5'));var rp=require(_0x61ce('0x6'));var fs=require('fs');var path=require(_0x61ce('0x7'));var rimraf=require(_0x61ce('0x8'));var config=require(_0x61ce('0x9'));var attributes=require('./variable.attributes');module[_0x61ce('0xa')]=function(_0x29e331,_0x367034){return _0x29e331[_0x61ce('0xb')](_0x61ce('0xc'),attributes,{'tableName':_0x61ce('0xd'),'paranoid':![],'indexes':[],'timestamps':!![]});};