97fbe6142dce3de2fd80be411a2028159132518e
[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 _0xf347=['api','moment','bluebird','path','rimraf','../../config/environment','define','VoicePrefix','lodash'];(function(_0x5b3b0e,_0x3130e2){var _0x4498e3=function(_0x420d5a){while(--_0x420d5a){_0x5b3b0e['push'](_0x5b3b0e['shift']());}};_0x4498e3(++_0x3130e2);}(_0xf347,0x10d));var _0x7f34=function(_0x2e104b,_0x4a6268){_0x2e104b=_0x2e104b-0x0;var _0x2b9f10=_0xf347[_0x2e104b];return _0x2b9f10;};'use strict';var _=require(_0x7f34('0x0'));var util=require('util');var logger=require('../../config/logger')(_0x7f34('0x1'));var moment=require(_0x7f34('0x2'));var BPromise=require(_0x7f34('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x7f34('0x4'));var rimraf=require(_0x7f34('0x5'));var config=require(_0x7f34('0x6'));var attributes=require('./voicePrefix.attributes');module['exports']=function(_0x403063,_0x36a54c){return _0x403063[_0x7f34('0x7')](_0x7f34('0x8'),attributes,{'tableName':'voice_prefixes','paranoid':![],'indexes':[],'timestamps':!![]});};