Built motion from commit 3c2ce842.|2.6.31
[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 _0x1949=['lodash','util','../../config/logger','api','moment','bluebird','request-promise','path','rimraf','../../config/environment','exports','define','Variable','tools_variables'];(function(_0x270dba,_0x1817d2){var _0x36b83b=function(_0x15a276){while(--_0x15a276){_0x270dba['push'](_0x270dba['shift']());}};_0x36b83b(++_0x1817d2);}(_0x1949,0x16c));var _0x9194=function(_0x3e116c,_0x1cb87a){_0x3e116c=_0x3e116c-0x0;var _0x276a52=_0x1949[_0x3e116c];return _0x276a52;};'use strict';var _=require(_0x9194('0x0'));var util=require(_0x9194('0x1'));var logger=require(_0x9194('0x2'))(_0x9194('0x3'));var moment=require(_0x9194('0x4'));var BPromise=require(_0x9194('0x5'));var rp=require(_0x9194('0x6'));var fs=require('fs');var path=require(_0x9194('0x7'));var rimraf=require(_0x9194('0x8'));var config=require(_0x9194('0x9'));var attributes=require('./variable.attributes');module[_0x9194('0xa')]=function(_0x30fd62,_0x24f9ac){return _0x30fd62[_0x9194('0xb')](_0x9194('0xc'),attributes,{'tableName':_0x9194('0xd'),'paranoid':![],'indexes':[],'timestamps':!![]});};