e472197aa0d57def9209c4cbbcb2d490dc6763b6
[motion2.git] / server / api / condition / condition.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 _0x0e7b=['tools_conditions','lodash','api','moment','request-promise','rimraf','../../config/environment','./condition.attributes','exports','define','Condition'];(function(_0x18f439,_0x565fdf){var _0x30be02=function(_0x5485ff){while(--_0x5485ff){_0x18f439['push'](_0x18f439['shift']());}};_0x30be02(++_0x565fdf);}(_0x0e7b,0x1da));var _0xb0e7=function(_0x256011,_0x3b14cf){_0x256011=_0x256011-0x0;var _0x40f0f8=_0x0e7b[_0x256011];return _0x40f0f8;};'use strict';var _=require(_0xb0e7('0x0'));var util=require('util');var logger=require('../../config/logger')(_0xb0e7('0x1'));var moment=require(_0xb0e7('0x2'));var BPromise=require('bluebird');var rp=require(_0xb0e7('0x3'));var fs=require('fs');var path=require('path');var rimraf=require(_0xb0e7('0x4'));var config=require(_0xb0e7('0x5'));var attributes=require(_0xb0e7('0x6'));module[_0xb0e7('0x7')]=function(_0x434188,_0xb9ff94){return _0x434188[_0xb0e7('0x8')](_0xb0e7('0x9'),attributes,{'tableName':_0xb0e7('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};