Built motion from commit e38a297d.|2.6.18
[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 _0x2c3e=['util','../../config/logger','api','moment','bluebird','request-promise','path','rimraf','../../config/environment','exports','define','Variable','tools_variables','lodash'];(function(_0xfae23b,_0x2be4ba){var _0x200640=function(_0x4ae258){while(--_0x4ae258){_0xfae23b['push'](_0xfae23b['shift']());}};_0x200640(++_0x2be4ba);}(_0x2c3e,0x125));var _0xe2c3=function(_0x450e32,_0x1f4f6a){_0x450e32=_0x450e32-0x0;var _0x3041e0=_0x2c3e[_0x450e32];return _0x3041e0;};'use strict';var _=require(_0xe2c3('0x0'));var util=require(_0xe2c3('0x1'));var logger=require(_0xe2c3('0x2'))(_0xe2c3('0x3'));var moment=require(_0xe2c3('0x4'));var BPromise=require(_0xe2c3('0x5'));var rp=require(_0xe2c3('0x6'));var fs=require('fs');var path=require(_0xe2c3('0x7'));var rimraf=require(_0xe2c3('0x8'));var config=require(_0xe2c3('0x9'));var attributes=require('./variable.attributes');module[_0xe2c3('0xa')]=function(_0x4c9417,_0x22dd53){return _0x4c9417[_0xe2c3('0xb')](_0xe2c3('0xc'),attributes,{'tableName':_0xe2c3('0xd'),'paranoid':![],'indexes':[],'timestamps':!![]});};