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 _0x9e04=['bluebird','request-promise','path','rimraf','../../config/environment','exports','define','CannedAnswer','tools_canned_answers','utf8mb4','utf8mb4_unicode_ci','util','../../config/logger'];(function(_0x180193,_0x55147b){var _0x1c8b1f=function(_0x5c7f37){while(--_0x5c7f37){_0x180193['push'](_0x180193['shift']());}};_0x1c8b1f(++_0x55147b);}(_0x9e04,0x66));var _0x49e0=function(_0x4dde4d,_0x2740c6){_0x4dde4d=_0x4dde4d-0x0;var _0x1d77a3=_0x9e04[_0x4dde4d];return _0x1d77a3;};'use strict';var _=require('lodash');var util=require(_0x49e0('0x0'));var logger=require(_0x49e0('0x1'))('api');var moment=require('moment');var BPromise=require(_0x49e0('0x2'));var rp=require(_0x49e0('0x3'));var fs=require('fs');var path=require(_0x49e0('0x4'));var rimraf=require(_0x49e0('0x5'));var config=require(_0x49e0('0x6'));var attributes=require('./cannedAnswer.attributes');module[_0x49e0('0x7')]=function(_0x567f40,_0x5decbd){return _0x567f40[_0x49e0('0x8')](_0x49e0('0x9'),attributes,{'tableName':_0x49e0('0xa'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x49e0('0xb'),'collate':_0x49e0('0xc')});};