b3a7f3dfd501b144849a264fa70609bb7374195d
[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 _0x4101=['path','rimraf','../../config/environment','./voicePrefix.attributes','exports','define','VoicePrefix','voice_prefixes','util','api','moment','request-promise'];(function(_0x38db3a,_0x244702){var _0x2ead95=function(_0x558eab){while(--_0x558eab){_0x38db3a['push'](_0x38db3a['shift']());}};_0x2ead95(++_0x244702);}(_0x4101,0x1b8));var _0x1410=function(_0x4abfdf,_0x56969e){_0x4abfdf=_0x4abfdf-0x0;var _0x369db5=_0x4101[_0x4abfdf];return _0x369db5;};'use strict';var _=require('lodash');var util=require(_0x1410('0x0'));var logger=require('../../config/logger')(_0x1410('0x1'));var moment=require(_0x1410('0x2'));var BPromise=require('bluebird');var rp=require(_0x1410('0x3'));var fs=require('fs');var path=require(_0x1410('0x4'));var rimraf=require(_0x1410('0x5'));var config=require(_0x1410('0x6'));var attributes=require(_0x1410('0x7'));module[_0x1410('0x8')]=function(_0x48805c,_0x5827ab){return _0x48805c[_0x1410('0x9')](_0x1410('0xa'),attributes,{'tableName':_0x1410('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};