75d2ef0715b9714958cd9a155caceed4c44ce0b5
[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 _0x69d5=['path','rimraf','../../config/environment','exports','VoicePrefix','lodash','util','api','request-promise'];(function(_0x1fc170,_0x17a5a9){var _0x289550=function(_0x4eaa19){while(--_0x4eaa19){_0x1fc170['push'](_0x1fc170['shift']());}};_0x289550(++_0x17a5a9);}(_0x69d5,0x7a));var _0x569d=function(_0x597cee,_0x118341){_0x597cee=_0x597cee-0x0;var _0x4f47bb=_0x69d5[_0x597cee];return _0x4f47bb;};'use strict';var _=require(_0x569d('0x0'));var util=require(_0x569d('0x1'));var logger=require('../../config/logger')(_0x569d('0x2'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0x569d('0x3'));var fs=require('fs');var path=require(_0x569d('0x4'));var rimraf=require(_0x569d('0x5'));var config=require(_0x569d('0x6'));var attributes=require('./voicePrefix.attributes');module[_0x569d('0x7')]=function(_0x3f492f,_0x197486){return _0x3f492f['define'](_0x569d('0x8'),attributes,{'tableName':'voice_prefixes','paranoid':![],'indexes':[],'timestamps':!![]});};