2a79bfcaa4e669e87b3dd11e8c05109b1e881b61
[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 _0x5557=['util','../../config/logger','api','moment','bluebird','path','../../config/environment','./variable.attributes','exports','tools_variables'];(function(_0xf921bd,_0x254170){var _0x371c99=function(_0x460fac){while(--_0x460fac){_0xf921bd['push'](_0xf921bd['shift']());}};_0x371c99(++_0x254170);}(_0x5557,0xa0));var _0x7555=function(_0x543412,_0x4d2bea){_0x543412=_0x543412-0x0;var _0x4cab53=_0x5557[_0x543412];return _0x4cab53;};'use strict';var _=require('lodash');var util=require(_0x7555('0x0'));var logger=require(_0x7555('0x1'))(_0x7555('0x2'));var moment=require(_0x7555('0x3'));var BPromise=require(_0x7555('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x7555('0x5'));var rimraf=require('rimraf');var config=require(_0x7555('0x6'));var attributes=require(_0x7555('0x7'));module[_0x7555('0x8')]=function(_0x4225b2,_0x4a98dc){return _0x4225b2['define']('Variable',attributes,{'tableName':_0x7555('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};