Built motion from commit da617fac.|2.6.6
[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 _0xd6e3=['define','tools_variables','lodash','../../config/logger','api','moment','path','../../config/environment','./variable.attributes','exports'];(function(_0x3500f2,_0x142fb1){var _0x7ad03f=function(_0x2a1a07){while(--_0x2a1a07){_0x3500f2['push'](_0x3500f2['shift']());}};_0x7ad03f(++_0x142fb1);}(_0xd6e3,0x1a6));var _0x3d6e=function(_0x5692b0,_0x2316e8){_0x5692b0=_0x5692b0-0x0;var _0x490327=_0xd6e3[_0x5692b0];return _0x490327;};'use strict';var _=require(_0x3d6e('0x0'));var util=require('util');var logger=require(_0x3d6e('0x1'))(_0x3d6e('0x2'));var moment=require(_0x3d6e('0x3'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x3d6e('0x4'));var rimraf=require('rimraf');var config=require(_0x3d6e('0x5'));var attributes=require(_0x3d6e('0x6'));module[_0x3d6e('0x7')]=function(_0x351302,_0x559983){return _0x351302[_0x3d6e('0x8')]('Variable',attributes,{'tableName':_0x3d6e('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};