9edf4a3bb21c2c0ea3029aaf00c4178b1023b22c
[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 _0x4ad5=['api','request-promise','path','rimraf','../../config/environment','exports','define','VoicePrefix','lodash','util'];(function(_0x26797a,_0x104240){var _0xeb5295=function(_0x238784){while(--_0x238784){_0x26797a['push'](_0x26797a['shift']());}};_0xeb5295(++_0x104240);}(_0x4ad5,0x1ca));var _0x54ad=function(_0x1f150b,_0x3a2169){_0x1f150b=_0x1f150b-0x0;var _0x87d86e=_0x4ad5[_0x1f150b];return _0x87d86e;};'use strict';var _=require(_0x54ad('0x0'));var util=require(_0x54ad('0x1'));var logger=require('../../config/logger')(_0x54ad('0x2'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0x54ad('0x3'));var fs=require('fs');var path=require(_0x54ad('0x4'));var rimraf=require(_0x54ad('0x5'));var config=require(_0x54ad('0x6'));var attributes=require('./voicePrefix.attributes');module[_0x54ad('0x7')]=function(_0x19e273,_0x150c97){return _0x19e273[_0x54ad('0x8')](_0x54ad('0x9'),attributes,{'tableName':'voice_prefixes','paranoid':![],'indexes':[],'timestamps':!![]});};