fd21f0ecddc91c872347de042d98b944248c8a16
[motion2.git] / server / api / template / template.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 _0xf244=['tools_templates','lodash','util','../../config/logger','api','request-promise','path','rimraf','./template.attributes','exports','Template'];(function(_0x288714,_0x59b476){var _0x4ba293=function(_0x3e82c6){while(--_0x3e82c6){_0x288714['push'](_0x288714['shift']());}};_0x4ba293(++_0x59b476);}(_0xf244,0x1da));var _0x4f24=function(_0x4565bf,_0x5ad9d6){_0x4565bf=_0x4565bf-0x0;var _0x5610ba=_0xf244[_0x4565bf];return _0x5610ba;};'use strict';var _=require(_0x4f24('0x0'));var util=require(_0x4f24('0x1'));var logger=require(_0x4f24('0x2'))(_0x4f24('0x3'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0x4f24('0x4'));var fs=require('fs');var path=require(_0x4f24('0x5'));var rimraf=require(_0x4f24('0x6'));var config=require('../../config/environment');var attributes=require(_0x4f24('0x7'));module[_0x4f24('0x8')]=function(_0x25e73d,_0x25a294){return _0x25e73d['define'](_0x4f24('0x9'),attributes,{'tableName':_0x4f24('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};