150ae5a59f0124ba1446ebccb87bebc6e498db8a
[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 _0x6388=['api','moment','bluebird','request-promise','path','rimraf','exports','define','VoicePrefix','lodash','util'];(function(_0x1e8003,_0x13db95){var _0x3d48f4=function(_0x53b53e){while(--_0x53b53e){_0x1e8003['push'](_0x1e8003['shift']());}};_0x3d48f4(++_0x13db95);}(_0x6388,0x106));var _0x8638=function(_0x44462e,_0xead5df){_0x44462e=_0x44462e-0x0;var _0x1392ab=_0x6388[_0x44462e];return _0x1392ab;};'use strict';var _=require(_0x8638('0x0'));var util=require(_0x8638('0x1'));var logger=require('../../config/logger')(_0x8638('0x2'));var moment=require(_0x8638('0x3'));var BPromise=require(_0x8638('0x4'));var rp=require(_0x8638('0x5'));var fs=require('fs');var path=require(_0x8638('0x6'));var rimraf=require(_0x8638('0x7'));var config=require('../../config/environment');var attributes=require('./voicePrefix.attributes');module[_0x8638('0x8')]=function(_0x5ca3ba,_0x2bfe3c){return _0x5ca3ba[_0x8638('0x9')](_0x8638('0xa'),attributes,{'tableName':'voice_prefixes','paranoid':![],'indexes':[],'timestamps':!![]});};