34c2b616076fa13e5cd7451dc3a1723a9e04f7f0
[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 _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':!![]});};