a2d56ffea9878dad8b8f3dd1ed2ff1ffe57d4a63
[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 _0xb3fd=['define','bluebird','path','rimraf','../../config/environment','./template.attributes','exports'];(function(_0x142020,_0x1f7233){var _0x40da8f=function(_0x17f0a3){while(--_0x17f0a3){_0x142020['push'](_0x142020['shift']());}};_0x40da8f(++_0x1f7233);}(_0xb3fd,0xd3));var _0xdb3f=function(_0x32f2ef,_0x1b640e){_0x32f2ef=_0x32f2ef-0x0;var _0x22c61f=_0xb3fd[_0x32f2ef];return _0x22c61f;};'use strict';var _=require('lodash');var util=require('util');var logger=require('../../config/logger')('api');var moment=require('moment');var BPromise=require(_0xdb3f('0x0'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xdb3f('0x1'));var rimraf=require(_0xdb3f('0x2'));var config=require(_0xdb3f('0x3'));var attributes=require(_0xdb3f('0x4'));module[_0xdb3f('0x5')]=function(_0x3bbe09,_0xbb043f){return _0x3bbe09[_0xdb3f('0x6')]('Template',attributes,{'tableName':'tools_templates','paranoid':![],'indexes':[],'timestamps':!![]});};