abe708c00d4f879df6660bf0a4a99d4456edb553
[motion2.git] / server / api / voicePrefix / voicePrefix.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 _0xdbf6=['path','../../config/environment','define','VoicePrefix','util','../../config/logger','api','moment','bluebird'];(function(_0x1bffb8,_0x48a178){var _0x24cd6e=function(_0x214737){while(--_0x214737){_0x1bffb8['push'](_0x1bffb8['shift']());}};_0x24cd6e(++_0x48a178);}(_0xdbf6,0xaf));var _0x6dbf=function(_0x2517c2,_0x54c9f1){_0x2517c2=_0x2517c2-0x0;var _0x37d883=_0xdbf6[_0x2517c2];return _0x37d883;};'use strict';var _=require('lodash');var util=require(_0x6dbf('0x0'));var logger=require(_0x6dbf('0x1'))(_0x6dbf('0x2'));var moment=require(_0x6dbf('0x3'));var BPromise=require(_0x6dbf('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x6dbf('0x5'));var rimraf=require('rimraf');var config=require(_0x6dbf('0x6'));var attributes=require('./voicePrefix.attributes');module['exports']=function(_0x583825,_0x1aee58){return _0x583825[_0x6dbf('0x7')](_0x6dbf('0x8'),attributes,{'tableName':'voice_prefixes','paranoid':![],'indexes':[],'timestamps':!![]});};