949c8f8fddf6485ad97a190bf2c34ea784cf1ba5
[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 _0x5b5e=['voice_contexts','lodash','../../config/logger','api','moment','request-promise','path','rimraf','../../config/environment','exports','define','VoiceContext'];(function(_0x35885a,_0x42fed7){var _0xe86249=function(_0x98edb3){while(--_0x98edb3){_0x35885a['push'](_0x35885a['shift']());}};_0xe86249(++_0x42fed7);}(_0x5b5e,0x151));var _0xe5b5=function(_0x1a3d29,_0x22fc58){_0x1a3d29=_0x1a3d29-0x0;var _0x10fe99=_0x5b5e[_0x1a3d29];return _0x10fe99;};'use strict';var _=require(_0xe5b5('0x0'));var util=require('util');var logger=require(_0xe5b5('0x1'))(_0xe5b5('0x2'));var moment=require(_0xe5b5('0x3'));var BPromise=require('bluebird');var rp=require(_0xe5b5('0x4'));var fs=require('fs');var path=require(_0xe5b5('0x5'));var rimraf=require(_0xe5b5('0x6'));var config=require(_0xe5b5('0x7'));var attributes=require('./voiceContext.attributes');module[_0xe5b5('0x8')]=function(_0x3d5a8b,_0x53b05e){return _0x3d5a8b[_0xe5b5('0x9')](_0xe5b5('0xa'),attributes,{'tableName':_0xe5b5('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};