43eb51b5062d8b2be7f3df617676957119d83f9c
[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 _0x2168=['bluebird','request-promise','path','rimraf','./voiceContext.attributes','define','VoiceContext','voice_contexts','util','moment'];(function(_0x42cae2,_0x284ef8){var _0x5f256f=function(_0x41abc8){while(--_0x41abc8){_0x42cae2['push'](_0x42cae2['shift']());}};_0x5f256f(++_0x284ef8);}(_0x2168,0x1b6));var _0x8216=function(_0x57a0ad,_0x4d490c){_0x57a0ad=_0x57a0ad-0x0;var _0x2c62c1=_0x2168[_0x57a0ad];return _0x2c62c1;};'use strict';var _=require('lodash');var util=require(_0x8216('0x0'));var logger=require('../../config/logger')('api');var moment=require(_0x8216('0x1'));var BPromise=require(_0x8216('0x2'));var rp=require(_0x8216('0x3'));var fs=require('fs');var path=require(_0x8216('0x4'));var rimraf=require(_0x8216('0x5'));var config=require('../../config/environment');var attributes=require(_0x8216('0x6'));module['exports']=function(_0x2a21f1,_0x3da4c4){return _0x2a21f1[_0x8216('0x7')](_0x8216('0x8'),attributes,{'tableName':_0x8216('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};