bdd7ec9634e4a0390ac65c35c670ec2221b90f9b
[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 _0xb66e=['rimraf','../../config/environment','./voicePrefix.attributes','exports','define','VoicePrefix','voice_prefixes','bluebird','request-promise','path'];(function(_0x402aa8,_0x3bb440){var _0xf6a0ab=function(_0x2d4b12){while(--_0x2d4b12){_0x402aa8['push'](_0x402aa8['shift']());}};_0xf6a0ab(++_0x3bb440);}(_0xb66e,0xc5));var _0xeb66=function(_0x1dbbce,_0x48410a){_0x1dbbce=_0x1dbbce-0x0;var _0x30b20d=_0xb66e[_0x1dbbce];return _0x30b20d;};'use strict';var _=require('lodash');var util=require('util');var logger=require('../../config/logger')('api');var moment=require('moment');var BPromise=require(_0xeb66('0x0'));var rp=require(_0xeb66('0x1'));var fs=require('fs');var path=require(_0xeb66('0x2'));var rimraf=require(_0xeb66('0x3'));var config=require(_0xeb66('0x4'));var attributes=require(_0xeb66('0x5'));module[_0xeb66('0x6')]=function(_0x2411aa,_0x2f4a7a){return _0x2411aa[_0xeb66('0x7')](_0xeb66('0x8'),attributes,{'tableName':_0xeb66('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};