816154767577471bcbef3b9701de46ba3199353b
[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 _0xd8d2=['path','exports','VoicePrefix','lodash','util','../../config/logger','api','request-promise'];(function(_0x271d24,_0x26b059){var _0x8f31e2=function(_0x151b44){while(--_0x151b44){_0x271d24['push'](_0x271d24['shift']());}};_0x8f31e2(++_0x26b059);}(_0xd8d2,0x133));var _0x2d8d=function(_0x11a890,_0x59b390){_0x11a890=_0x11a890-0x0;var _0x220a4c=_0xd8d2[_0x11a890];return _0x220a4c;};'use strict';var _=require(_0x2d8d('0x0'));var util=require(_0x2d8d('0x1'));var logger=require(_0x2d8d('0x2'))(_0x2d8d('0x3'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0x2d8d('0x4'));var fs=require('fs');var path=require(_0x2d8d('0x5'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require('./voicePrefix.attributes');module[_0x2d8d('0x6')]=function(_0x13547f,_0x3efd66){return _0x13547f['define'](_0x2d8d('0x7'),attributes,{'tableName':'voice_prefixes','paranoid':![],'indexes':[],'timestamps':!![]});};