385788240989ceb35bbc92c0f8c000bc0e7f1dcf
[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 _0x2edf=['rimraf','../../config/environment','./template.attributes','exports','define','tools_templates','util','../../config/logger','api','request-promise','path'];(function(_0x39ddbb,_0x349add){var _0x4c8595=function(_0xf30d74){while(--_0xf30d74){_0x39ddbb['push'](_0x39ddbb['shift']());}};_0x4c8595(++_0x349add);}(_0x2edf,0x1be));var _0xf2ed=function(_0x312ad6,_0x5dcca8){_0x312ad6=_0x312ad6-0x0;var _0x1069dc=_0x2edf[_0x312ad6];return _0x1069dc;};'use strict';var _=require('lodash');var util=require(_0xf2ed('0x0'));var logger=require(_0xf2ed('0x1'))(_0xf2ed('0x2'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0xf2ed('0x3'));var fs=require('fs');var path=require(_0xf2ed('0x4'));var rimraf=require(_0xf2ed('0x5'));var config=require(_0xf2ed('0x6'));var attributes=require(_0xf2ed('0x7'));module[_0xf2ed('0x8')]=function(_0x3c9a69,_0x89dea4){return _0x3c9a69[_0xf2ed('0x9')]('Template',attributes,{'tableName':_0xf2ed('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};