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 _0x3ffe=['exports','define','Template','util','../../config/logger','moment','request-promise','path','rimraf'];(function(_0x21a9d9,_0x4d5ac8){var _0x46adce=function(_0xfdd336){while(--_0xfdd336){_0x21a9d9['push'](_0x21a9d9['shift']());}};_0x46adce(++_0x4d5ac8);}(_0x3ffe,0xff));var _0xe3ff=function(_0x1d9aa0,_0x272488){_0x1d9aa0=_0x1d9aa0-0x0;var _0x226868=_0x3ffe[_0x1d9aa0];return _0x226868;};'use strict';var _=require('lodash');var util=require(_0xe3ff('0x0'));var logger=require(_0xe3ff('0x1'))('api');var moment=require(_0xe3ff('0x2'));var BPromise=require('bluebird');var rp=require(_0xe3ff('0x3'));var fs=require('fs');var path=require(_0xe3ff('0x4'));var rimraf=require(_0xe3ff('0x5'));var config=require('../../config/environment');var attributes=require('./template.attributes');module[_0xe3ff('0x6')]=function(_0x7ea332,_0x214df8){return _0x7ea332[_0xe3ff('0x7')](_0xe3ff('0x8'),attributes,{'tableName':'tools_templates','paranoid':![],'indexes':[],'timestamps':!![]});};