1c346e0ca7a67bd4e09e8468ee4aad703dbe8d53
[motion2.git] / server / api / voiceContext / voiceContext.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 _0xa713=['rimraf','./voiceContext.attributes','exports','VoiceContext','voice_contexts','lodash','api','request-promise'];(function(_0xd578cb,_0x2167a3){var _0x775533=function(_0x1c340d){while(--_0x1c340d){_0xd578cb['push'](_0xd578cb['shift']());}};_0x775533(++_0x2167a3);}(_0xa713,0x7d));var _0x3a71=function(_0x3a5d04,_0x59ff36){_0x3a5d04=_0x3a5d04-0x0;var _0x3fb6a9=_0xa713[_0x3a5d04];return _0x3fb6a9;};'use strict';var _=require(_0x3a71('0x0'));var util=require('util');var logger=require('../../config/logger')(_0x3a71('0x1'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0x3a71('0x2'));var fs=require('fs');var path=require('path');var rimraf=require(_0x3a71('0x3'));var config=require('../../config/environment');var attributes=require(_0x3a71('0x4'));module[_0x3a71('0x5')]=function(_0x49b8ee,_0x27de9a){return _0x49b8ee['define'](_0x3a71('0x6'),attributes,{'tableName':_0x3a71('0x7'),'paranoid':![],'indexes':[],'timestamps':!![]});};