1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0xce41=['moment','bluebird','path','rimraf','exports','define','VoiceContext','voice_contexts','lodash','../../config/logger'];(function(_0x194a6d,_0x5d63f4){var _0x4d0a9d=function(_0x111bfb){while(--_0x111bfb){_0x194a6d['push'](_0x194a6d['shift']());}};_0x4d0a9d(++_0x5d63f4);}(_0xce41,0x1c0));var _0x1ce4=function(_0x40be86,_0x68fe5d){_0x40be86=_0x40be86-0x0;var _0xda3c3b=_0xce41[_0x40be86];return _0xda3c3b;};'use strict';var _=require(_0x1ce4('0x0'));var util=require('util');var logger=require(_0x1ce4('0x1'))('api');var moment=require(_0x1ce4('0x2'));var BPromise=require(_0x1ce4('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x1ce4('0x4'));var rimraf=require(_0x1ce4('0x5'));var config=require('../../config/environment');var attributes=require('./voiceContext.attributes');module[_0x1ce4('0x6')]=function(_0x295f4f,_0x501fc6){return _0x295f4f[_0x1ce4('0x7')](_0x1ce4('0x8'),attributes,{'tableName':_0x1ce4('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};