71c982198860274ccb4ee638513a0d519c3776d6
[motion2.git] / server / services / ami / fax / action.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 _0x7ad9=['name','localstationid','headerinfo','path','AttachmentId','util','moment','format','tech','Trunk'];(function(_0x3733a5,_0x1e840e){var _0x456ff8=function(_0x1494db){while(--_0x1494db){_0x3733a5['push'](_0x3733a5['shift']());}};_0x456ff8(++_0x1e840e);}(_0x7ad9,0x159));var _0x97ad=function(_0x3a5c35,_0x452d09){_0x3a5c35=_0x3a5c35-0x0;var _0x332797=_0x7ad9[_0x3a5c35];return _0x332797;};'use strict';var util=require(_0x97ad('0x0'));var _=require('lodash');var moment=require(_0x97ad('0x1'));function Action(_0x4b0259,_0x56eedb,_0x104612){this['uniqueid']=_0x4b0259||undefined;this['channel']=util[_0x97ad('0x2')]('%s/%s/%s',_0x56eedb[_0x97ad('0x3')],_0x56eedb[_0x97ad('0x4')][_0x97ad('0x5')],_0x104612['fax']);this[_0x97ad('0x6')]=_0x56eedb['localstationid'];this[_0x97ad('0x7')]=_0x56eedb[_0x97ad('0x7')];this['path']=_0x104612[_0x97ad('0x8')];this[_0x97ad('0x9')]=_0x104612['AttachmentId'];}module['exports']=Action;